Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend Rewrite #219

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
36672e0
chore: clean old files
unseen-ninja Jan 28, 2024
2715b75
refactor(frontend): new MVP
unseen-ninja Jan 28, 2024
780ccec
chore: change build folder
unseen-ninja Jan 28, 2024
47c4e6b
chore: move assets to public dir
unseen-ninja Jan 28, 2024
f23fd28
chore: build static files
unseen-ninja Jan 28, 2024
3e6c69c
refactor(lightbox): move to card component
unseen-ninja Jan 28, 2024
eb59e1b
feat(ui): simple fade-in animations
unseen-ninja Jan 28, 2024
4b48cfd
feat(ui): tag pills
unseen-ninja Jan 28, 2024
0db8bca
style(lightbox): improve readability
unseen-ninja Jan 28, 2024
d24b051
fix(layout): use proper favicon
unseen-ninja Jan 28, 2024
c9f729b
refactor(images): let astro optimise images
unseen-ninja Jan 28, 2024
e0788f9
refactor(ci) use astro build steps
unseen-ninja Jan 28, 2024
4fc7afe
chore(build): update static files
github-actions[bot] Jan 28, 2024
7b2998a
fix(build): asset path
unseen-ninja Jan 28, 2024
a40e928
chore(build): update static files
github-actions[bot] Jan 28, 2024
32414d9
scripts: add initial script with querying data
BeyondMagic Jan 29, 2024
ddbdf72
scripts: remove github api call function
BeyondMagic Jan 30, 2024
a293295
scripts: change name to set_dates_themes
BeyondMagic Jan 30, 2024
258c801
themes.json: vicefox to github link instead
BeyondMagic Jan 30, 2024
8c46c3b
README.md: update and add references to steps of contributing section
BeyondMagic Jan 30, 2024
b62fc3a
set_themes_date: make clear that it is deleting unreachable themes
BeyondMagic Jan 30, 2024
eb9bddd
set_dates_themes: use SSH authentication for github cloning
BeyondMagic Jan 30, 2024
12d274b
set_dates_themes: ask nicely for replacing source themes database
BeyondMagic Jan 30, 2024
8f0cabb
themes.json: add dates automatically for the first time
BeyondMagic Jan 30, 2024
29527f5
scripts: remove old file
BeyondMagic Jan 30, 2024
6408c3c
Merge pull request #1 from BeyondMagic/frontend-rewrite
unseen-ninja Mar 9, 2024
b32fade
chore: custom link color
unseen-ninja May 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# editorconfig.org

root = true

[*]
charset = utf-8
indent_size = 2
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,15 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: 14
- name: script
run: tests/img-switch.sh
shell: bash
node-version: 21
- run: npm i
- run: npm run build
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git config --local user.name "FirefoxCSS-Store"
git add .
git commit -m "build" -a
git commit -m "chore(build): update static files" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-themes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches: [ main ]
paths:
- 'themes.json'
- 'src/themes.json'

jobs:
test_pull_requests:
Expand Down
20 changes: 19 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/node_modules/
# build output
dist/

# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# environment variables
.env
.env.production

# macOS-specific files
.DS_Store
29 changes: 12 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,21 @@ A collection site of Firefox userchrome themes, mostly from FirefoxCSS Reddit.<b

---

## Add your theme <3
## Contributing: adding your theme <3

+ If you have a Github account:
1. Fork this repository
2. Look for a file called `themes.json`, open and edit it
+ [Forking](https://github.com/FirefoxCSS-Store/FirefoxCSS-Store.github.io/fork) and adding the theme yourself into the database:
1. Fork this repository.
2. Look for a file called `themes.json`, open and edit it.
3. Below the last `}` add `,` right after a copy the [code below](#code) and paste it in the file
4. Add the properties of your theme: **title**, **link**, **description**, **image** and **tag** (Cannot be left empty)
5. **Avoid the use of escaped characters, and the order matters**
6. Please, do not use a very big image, preferably (650x500)
7. Image property:
- You can put an image URL
- Or an image file in `/images/themes/` (The file extension doesn't matter). And then reference it in your code with the following `assets/img/themes/YOUR_FILE_NAME_WITHOUT_EXTENSION.webp`
8. Then send it as a pull request to this repository.
4. Add the properties of your theme: **title**, **link**, **description**, **image** and **tag** (Cannot be left empty).
5. You do not have to add the date property, unless you wish to, it will be automatically added later on running the script `./scripts/set_dates_themes.nu`.
6. Image property:
- You can put an image URL.
- Or an image file in [./src/assets/](./src/assets/) (The file extension doesn't matter). And then reference it in your theme.
7. Then send it as a pull request to this repository.

+ Or create an Issue:
1. When creating an issue, you will find a template for submitting a theme. Use that one. It's easy.

+ If you have a Twitter account:
1. Send **at least** the following properties: **tags**, **title**, **link**, **description**, and **picture** to [@Neikon66](https://twitter.com/Neikon66).
+ Or [create an Issue](https://github.com/FirefoxCSS-Store/FirefoxCSS-Store.github.io/issues/new?assignees=Neikon&labels=new+theme&projects=&template=-send-your-theme.md&title=%5BNEWTHEME%5D+Name+of+your+theme):
1. When creating an issue, you will see a template for submitting a theme. Use that one. It's easy.

```
{
Expand All @@ -71,4 +67,3 @@ A collection site of Firefox userchrome themes, mostly from FirefoxCSS Reddit.<b
<h1 align="center">What do you think =?</h1>

<p align="center">Feel free to send me any feedback via issue or my twitter <a href="https://twitter.com/Neikon66">@Neikon66</a>.</p>

10 changes: 10 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from 'astro/config'

// https://astro.build/config
export default defineConfig({
outDir: './docs',
build: {
assets: 'assets',
assetsPrefix: '.'
}
})
2 changes: 0 additions & 2 deletions dev/config/robots.txt

This file was deleted.

225 changes: 0 additions & 225 deletions dev/js/main.js

This file was deleted.

Loading