Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Create global constants file #273

Merged
merged 5 commits into from
Jul 29, 2020
Merged

Create global constants file #273

merged 5 commits into from
Jul 29, 2020

Conversation

Soitora
Copy link
Member

@Soitora Soitora commented Jul 28, 2020

Instead of having all files use their own const of the re-used assets such as URLs for download, put them in a global constants.js file and import to each file when needed.

@netlify
Copy link

netlify bot commented Jul 28, 2020

Deploy preview for tachiyomi ready!

Built with commit 5d52a3a

https://deploy-preview-273--tachiyomi.netlify.app

src/.vuepress/components/DownloadButtons.vue Outdated Show resolved Hide resolved
src/.vuepress/constants.js Outdated Show resolved Hide resolved
Soitora added 3 commits July 29, 2020 15:41
Change printWidth from 80, recommended project widths were at 100/120 so I choose 120.

Also while I'm doing it, tweak the EndOfLine setting to prevent VS Code from going ham on LF/CRLF sets.
And other import whitespace near it
@arkon arkon mentioned this pull request Jul 29, 2020
@Soitora Soitora merged commit 6a660e9 into tachiyomiorg:master Jul 29, 2020
arkon pushed a commit that referenced this pull request Jul 29, 2020
* Create global constants file

* Update constants import for all files

* Tweak project style guides

Change printWidth from 80, recommended project widths were at 100/120 so I choose 120.

Also while I'm doing it, tweak the EndOfLine setting to prevent VS Code from going ham on LF/CRLF sets.

* Remove the ESLint ignore lines in PR

And other import whitespace near it

* SNAKE_CASE constants instead of camelCase 6a660e9
@Soitora Soitora deleted the globalConstants branch July 29, 2020 21:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants