diff --git a/Dockerfile b/Dockerfile index 4a35138..e555252 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,4 +47,4 @@ COPY --chown=node:node --from=BUILD_IMAGE /home/node/node_modules ./node_modules EXPOSE 3000 # run it ! -CMD ["npm", "run", "start"] \ No newline at end of file +CMD ["npm", "start"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a88c192 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +services: + app: + container_name: codestats-readme + image: nginx-codestats + build: + context: . + dockerfile: Dockerfile + restart: always + ports: + - "8778:3000" diff --git a/index.ts b/index.ts index b53e6ad..fa19e74 100644 --- a/index.ts +++ b/index.ts @@ -5,13 +5,12 @@ import profile from './api/profile' const app = express() - app.use('/profile', profile) app.use('/history', history) app.use('/toplang', topLangs) app.get('/', (_, res) => { - res.redirect(301, 'https://github.com/domai-tb/codestats-readme') + res.redirect(301, 'https://git.basking.monster/gaiety/codestats-readme') }) app.listen(3000, () => { diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..ec00c15 --- /dev/null +++ b/mise.toml @@ -0,0 +1,3 @@ +[tools] +bun = "latest" +node = "latest" diff --git a/themes/README.md b/themes/README.md index f3188b0..c383dc1 100644 --- a/themes/README.md +++ b/themes/README.md @@ -26,7 +26,7 @@ Use `?theme=THEME_NAME` parameter like so :- | `gotham` ![profile_gotham][profile_gotham] | `material-palenight` ![profile_material-palenight][profile_material-palenight] | `graywhite` ![profile_graywhite][profile_graywhite] | | `vision-friendly-dark` ![profile_vision-friendly-dark][profile_vision-friendly-dark] | `ayu-mirage` ![profile_ayu-mirage][profile_ayu-mirage] | `midnight-purple` ![profile_midnight-purple][profile_midnight-purple] | | `calm` ![profile_calm][profile_calm] | `omni` ![profile_omni][profile_omni] | `react` ![profile_react][profile_react] | -| [Add your theme][add-theme] | | | +| `catppuccin` ![profile_catppuccin][profile_catppuccin] | | | ## History Card @@ -44,7 +44,7 @@ Use `?theme=THEME_NAME` parameter like so :- | `gotham` ![history_gotham][history_gotham] | `material-palenight` ![history_material-palenight][history_material-palenight] | `graywhite` ![history_graywhite][history_graywhite] | | `vision-friendly-dark` ![history_vision-friendly-dark][history_vision-friendly-dark] | `ayu-mirage` ![history_ayu-mirage][history_ayu-mirage] | `midnight-purple` ![history_midnight-purple][history_midnight-purple] | | `calm` ![history_calm][history_calm] | `omni` ![history_omni][history_omni] | `react` ![history_react][history_react] | -| [Add your theme][add-theme] | | | +| `catppuccin` ![history_catppuccin][history_catppuccin] | | | ## Top Langs Card @@ -62,7 +62,7 @@ Use `?theme=THEME_NAME` parameter like so :- | `gotham` ![top_langs_gotham][top_langs_gotham] | `material-palenight` ![top_langs_material-palenight][top_langs_material-palenight] | `graywhite` ![top_langs_graywhite][top_langs_graywhite] | | `vision-friendly-dark` ![top_langs_vision-friendly-dark][top_langs_vision-friendly-dark] | `ayu-mirage` ![top_langs_ayu-mirage][top_langs_ayu-mirage] | `midnight-purple` ![top_langs_midnight-purple][top_langs_midnight-purple] | | `calm` ![top_langs_calm][top_langs_calm] | `omni` ![top_langs_omni][top_langs_omni] | `react` ![top_langs_react][top_langs_react] | -| [Add your theme][add-theme] | | | +| `catppuccin` ![top_langs_catppuccin][top_langs_catppuccin] | | | [top_langs_default]: https://codestats-readme.vercel.app/api/top-langs/?username=aviortheking&theme=default @@ -101,6 +101,7 @@ Use `?theme=THEME_NAME` parameter like so :- [top_langs_calm]: https://codestats-readme.vercel.app/api/top-langs/?username=aviortheking&theme=calm [top_langs_omni]: https://codestats-readme.vercel.app/api/top-langs/?username=aviortheking&theme=omni [top_langs_react]: https://codestats-readme.vercel.app/api/top-langs/?username=aviortheking&theme=react +[top_langs_catppuccin]: https://codestats-readme.vercel.app/api/top-langs/?username=aviortheking&theme=catppuccin [history_default]: https://codestats-readme.vercel.app/api/history?username=Aviortheking&layout=horizontal&theme=default [history_dark]: https://codestats-readme.vercel.app/api/history?username=Aviortheking&layout=horizontal&theme=dark [history_radical]: https://codestats-readme.vercel.app/api/history?username=Aviortheking&layout=horizontal&theme=radical @@ -137,6 +138,7 @@ Use `?theme=THEME_NAME` parameter like so :- [history_calm]: https://codestats-readme.vercel.app/api/history?username=Aviortheking&layout=horizontal&theme=calm [history_omni]: https://codestats-readme.vercel.app/api/history?username=Aviortheking&layout=horizontal&theme=omni [history_react]: https://codestats-readme.vercel.app/api/history?username=Aviortheking&layout=horizontal&theme=react +[history_catppuccin]: https://codestats-readme.vercel.app/api/history?username=Aviortheking&layout=horizontal&theme=catppuccin [profile_default]: https://codestats-readme.vercel.app/api?username=aviortheking&show_icons=true&theme=default [profile_dark]: https://codestats-readme.vercel.app/api?username=aviortheking&show_icons=true&theme=dark [profile_radical]: https://codestats-readme.vercel.app/api?username=aviortheking&show_icons=true&theme=radical @@ -173,6 +175,7 @@ Use `?theme=THEME_NAME` parameter like so :- [profile_calm]: https://codestats-readme.vercel.app/api?username=aviortheking&show_icons=true&theme=calm [profile_omni]: https://codestats-readme.vercel.app/api?username=aviortheking&show_icons=true&theme=omni [profile_react]: https://codestats-readme.vercel.app/api?username=aviortheking&show_icons=true&theme=react +[profile_catppuccin]: https://codestats-readme.vercel.app/api?username=aviortheking&show_icons=true&theme=catppuccin [add-theme]: https://github.com/aviortheking/codestats-readme/edit/master/themes/index.js diff --git a/themes/language-bar.json b/themes/language-bar.json index ef4dc34..5b5374d 100644 --- a/themes/language-bar.json +++ b/themes/language-bar.json @@ -380,7 +380,7 @@ "url": "https://github.com/trending?l=Eiffel" }, "Elixir": { - "color": "#6e4a7e", + "color": "#b4befe", "url": "https://github.com/trending?l=Elixir" }, "Elm": { @@ -664,7 +664,7 @@ "url": "https://github.com/trending?l=Java-Server-Pages" }, "JavaScript": { - "color": "#f1e05a", + "color": "#74c7ec", "url": "https://github.com/trending?l=JavaScript" }, "JavaScript+ERB": { @@ -1539,7 +1539,7 @@ "url": "https://github.com/trending?l=TXL" }, "TypeScript": { - "color": "#2b7489", + "color": "#89b4fa", "url": "https://github.com/trending?l=TypeScript" }, "TypeScript (JSX)": { diff --git a/themes/themes.json b/themes/themes.json index 2e35323..007ee6f 100644 --- a/themes/themes.json +++ b/themes/themes.json @@ -1,9 +1,9 @@ { "default": { - "title_color": "2f80ed", - "icon_color": "4c71f2", - "text_color": "333", - "bg_color": "fffefe" + "title_color": "cdd6f4", + "icon_color": "94e2d5", + "text_color": "a6adc8", + "bg_color": "181825" }, "dark": { "title_color": "fff", @@ -214,5 +214,11 @@ "icon_color": "61dafb", "text_color": "ffffff", "bg_color": "20232a" + }, + "catppuccin": { + "title_color": "cdd6f4", + "icon_color": "94e2d5", + "text_color": "a6adc8", + "bg_color": "181825" } }