1
0
mirror of https://github.com/o2sh/onefetch synced 2024-07-02 15:48:51 +00:00
Commit Graph

14 Commits

Author SHA1 Message Date
o2sh
27220de309
fix codeowners to take into account precedence 2023-06-04 13:30:27 +02:00
o2sh
203b941826
revert change on codeowners 2023-06-04 13:23:04 +02:00
o2sh
3df80e05cf
fix codeowners 2023-06-04 13:06:37 +02:00
o2sh
8ae30d080d
try to fix CODEOWNERS 2023-06-04 12:53:20 +02:00
Ossama Hjaji
fdf435d089
Refactoring of info/langs/mod.rs (#948)
* refacto langs module

* rename var

* add documentation to clarify the terminology
2023-01-28 22:28:01 +01:00
o2sh
559f56e29c fix path in CODEOWNERS 2023-01-20 16:28:22 +01:00
o2sh
0ad74f86f7 fix broken path in CODEOWNERS 2023-01-20 16:26:50 +01:00
Spenser Black
acc925764c
Fix path to language template (#939)
Codeowners file was pointing to an old path that doesn't exist.
2023-01-20 16:22:14 +01:00
Ossama Hjaji
4a3ef8c23d
Info struct to holds a Vec<InfoField> (#911)
* use vec of info fields

* update CODEOWNERS

* cargo sort

* address PR comment

* fix unit test
2022-12-30 21:23:38 +01:00
Ossama Hjaji
066be27eb2
Turn InfoField into a trait (big refactoring) (#755) 2022-09-06 10:14:44 +02:00
Spenser Black
a2d6cf171a
Create Vercel app for onefetch with ASCII preview (#701)
* Create folder for vercel app

* Ignore vercel directory for CI

* Exclude contents of vercel folder from package

* Initialize Svelte+TS project

* Add API endpoint for getting all languages

* Convert YAML to JSON in build

* Add API endpoint for getting a single language

* Don't stringify JSON before responding

* Add function to get language data

Conditionally gets data based on environment. If in production, then it
is gotten from the API, but if in development, it gets it from the local
file.

* Pluralize API

* Add some styling with a simple navbar

* Add route to ASCII preview

* Colorize ASCII previews

* Reduce vertical spacing in ASCII previews

* Add installation instructions to homepage

* Set type of key parameter

Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>

* Fix incorrect response value

Requesting an individual language value was actually returning all languages.

Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>

* Darken background of dark preview

The "terminal" background was too light and not representative of a typical configuration.

Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>

* Display colored chip next to name in preview

* Move chip out of `<h3>`

Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>

* Add language count to preview header

Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>

* Fix chip on different line than title

* remove unused div

* fix hyperlink

* remove useless css class

* remove bg color of nav

* remove unused div

* remove app.css

* try to fix build

* bump sakura.css dep

* revert change on tsconfig.ts

* update tsconfig

* remove api

* directly read from yaml

* revert change on tsconfig

* bg set to white when dark checkbox is false

* remove yarn.lock

* reorganize folders

* link sakura.css from HTML

* switch to black if not dark and color is white

* only default to terminal fg color when ansi

* add .gitattributes file to exclude vercel from stats

* switch to language-documentation

* fix ally warning + type

* simplify logic for true color checkbox

* run prettier on all files

* added eslint

* run prettier

* run prettier

* static assets are served from root path

* prettier on .svelte files

* Resolve type error on YAML

* Ignore `dist/`

If a user runs `npm run build` locally to build the Vite deployment,
this folder will be generated with built assets. We probably don't want
those assets to be tracked.

* Make `languages.yaml` module pattern more specific

* use sakura earthly theme

* Add Vercel Deployment CI

* Fix labels for preview checkboxes

* Fix check step

* Fix styling of labels

* Make svelte-check more strict in CI

* Rename main vercel CI job

* Register Vercel subproject for dependabot

* fix alignement of label + checkbox

* add entry  for vercel/ in CODEOWNERS

* fix svelte check

Co-authored-by: o2sh <ossama-hjaji@live.fr>
2022-07-29 20:31:16 +02:00
Spenser Black
d4e6cdadc6
Extract language definitions into data file (#699) 2022-07-09 11:08:49 +02:00
o2sh
796ecf521c add code owner for ascii files 2022-05-31 13:39:48 +02:00
Ossama Hjaji
7d37ef7ad3
add CODEOWNERS (#672)
* add CODEOWNERS

* update CODEOWNERS

* update CODEOWNERS
2022-05-21 19:02:21 +02:00