This website requires JavaScript.
Explore
Help
Sign In
OpenSourceArk
/
Ghost
Watch
1
Star
0
Fork
0
You've already forked Ghost
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
eb7024da34
Ghost
/
ghost
/
core
/
.eslintignore
4 lines
98 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Added new card src files to eslint ignore - we don't need lint to run on these files as they are intended for the browser
2021-11-04 14:58:36 +03:00
core/frontend/src/**/*.js
Added member attribution script (#15242) refs https://github.com/TryGhost/Team/issues/1804 - Adds a script that is only injected when the member attribution alpha flag is enabled - This script builds a history and saves it in localStorage as `ghost-history` that contains something like this: ``` json [ { "time": 1660650730, "path": "/about/" }, { "time": 1660651730, "path": "/welcome/" } ] ``` - Keeps track of the time of every page visit, so we can correctly remove old items. I also considered saving the time separately and clearing the whole history when the saved time is older than 24h, but that would have the side effect that items older than 24h might leak into the history if you visit every 12 hours (to give an example). Plus, having objects in the history might make it easier to add other attributes to the items if we ever want to do that in the future. We also have access to the time between visits. - Added `.eslintrc` configuration for this new frontend script. This makes it easier to spot errors when developing, and follow the same syntax rules as other scripts. In the future it can allow us to require an older ECMA version in the browser script. If we like this pattern, we could also use it for other frontend scripts.
2022-08-16 16:44:51 +03:00
!core/frontend/src/member-attribution/*.js
Finished moving public to frontend refs: https://github.com/TryGhost/Ghost/commit/ae33c897075750c80630fd08d4713b04067eb8bb - I forgot to do all the meta tasks to cleanup the move of public 🙈
2021-10-19 14:33:46 +03:00
core/frontend/public/**/*.js
Reference in New Issue
Copy Permalink