From 4ec41164f8cb0f34383e23465583fd088c6f1a1a Mon Sep 17 00:00:00 2001 From: Maulana Sodiqin Date: Thu, 13 Mar 2025 02:03:13 +0700 Subject: [PATCH] chore: initial commit --- .verdaccio/config.yml | 28 + apps/dimentorin/postcss.config.mjs | 5 + apps/dimentorin/src/app/app.module.css | 1 - apps/dimentorin/src/app/app.spec.tsx | 17 - apps/dimentorin/src/app/app.tsx | 13 - apps/dimentorin/src/app/nx-welcome.tsx | 856 --- apps/dimentorin/src/app/page.tsx | 7 + apps/dimentorin/src/index.css | 120 + apps/dimentorin/src/main.tsx | 41 +- apps/dimentorin/src/middleware.ts | 11 + apps/gacha/eslint.config.mjs | 12 + apps/gacha/index.html | 16 + apps/gacha/postcss.config.mjs | 5 + apps/gacha/project.json | 9 + apps/gacha/public/favicon.ico | Bin 0 -> 15086 bytes apps/gacha/src/app/layout.tsx | 14 + apps/gacha/src/app/page.tsx | 7 + .../{dimentorin => gacha}/src/assets/.gitkeep | 0 apps/gacha/src/index.css | 120 + apps/gacha/src/main.tsx | 40 + apps/gacha/src/middleware.ts | 11 + apps/{dimentorin => gacha}/src/styles.css | 0 apps/gacha/tsconfig.app.json | 27 + apps/gacha/tsconfig.json | 21 + apps/gacha/tsconfig.spec.json | 30 + apps/gacha/vite.config.ts | 42 + libs/ui/.babelrc | 12 + libs/ui/README.md | 7 + libs/ui/eslint.config.mjs | 12 + libs/ui/package.json | 12 + libs/ui/project.json | 23 + libs/ui/src/atoms/button/button.spec.tsx | 48 + libs/ui/src/atoms/button/button.tsx | 67 + libs/ui/src/atoms/button/index.ts | 1 + libs/ui/src/atoms/index.ts | 1 + libs/ui/src/organisms/index.ts | 1 + libs/ui/src/organisms/navbar/index.ts | 1 + libs/ui/src/organisms/navbar/navbar.tsx | 74 + libs/ui/tsconfig.json | 21 + libs/ui/tsconfig.lib.json | 35 + libs/ui/tsconfig.spec.json | 28 + libs/ui/vite.config.ts | 64 + libs/ui/vitest.setup.ts | 1 + libs/utils/.babelrc | 12 + libs/utils/README.md | 7 + libs/utils/eslint.config.mjs | 12 + libs/utils/package.json | 12 + libs/utils/project.json | 23 + libs/utils/src/axios/api.ts | 7 + libs/utils/src/axios/index.ts | 1 + libs/utils/src/index.ts | 4 + libs/utils/src/react-query/client.ts | 3 + libs/utils/src/react-query/index.ts | 2 + libs/utils/src/react-query/provider.tsx | 11 + .../src/react-router/file-based-routing.tsx | 393 ++ libs/utils/src/react-router/index.ts | 1 + libs/utils/src/tailwind-merge/cn.ts | 6 + libs/utils/src/tailwind-merge/index.ts | 1 + libs/utils/tsconfig.json | 21 + libs/utils/tsconfig.lib.json | 35 + libs/utils/tsconfig.spec.json | 28 + libs/utils/vite.config.ts | 59 + nx.json | 8 +- package-lock.json | 4801 +++++++++++++++-- package.json | 35 +- project.json | 14 + tsconfig.base.json | 13 +- 67 files changed, 6111 insertions(+), 1259 deletions(-) create mode 100644 .verdaccio/config.yml create mode 100644 apps/dimentorin/postcss.config.mjs delete mode 100644 apps/dimentorin/src/app/app.module.css delete mode 100644 apps/dimentorin/src/app/app.spec.tsx delete mode 100644 apps/dimentorin/src/app/app.tsx delete mode 100644 apps/dimentorin/src/app/nx-welcome.tsx create mode 100644 apps/dimentorin/src/app/page.tsx create mode 100644 apps/dimentorin/src/index.css create mode 100644 apps/dimentorin/src/middleware.ts create mode 100644 apps/gacha/eslint.config.mjs create mode 100644 apps/gacha/index.html create mode 100644 apps/gacha/postcss.config.mjs create mode 100644 apps/gacha/project.json create mode 100644 apps/gacha/public/favicon.ico create mode 100644 apps/gacha/src/app/layout.tsx create mode 100644 apps/gacha/src/app/page.tsx rename apps/{dimentorin => gacha}/src/assets/.gitkeep (100%) create mode 100644 apps/gacha/src/index.css create mode 100644 apps/gacha/src/main.tsx create mode 100644 apps/gacha/src/middleware.ts rename apps/{dimentorin => gacha}/src/styles.css (100%) create mode 100644 apps/gacha/tsconfig.app.json create mode 100644 apps/gacha/tsconfig.json create mode 100644 apps/gacha/tsconfig.spec.json create mode 100644 apps/gacha/vite.config.ts create mode 100644 libs/ui/.babelrc create mode 100644 libs/ui/README.md create mode 100644 libs/ui/eslint.config.mjs create mode 100644 libs/ui/package.json create mode 100644 libs/ui/project.json create mode 100644 libs/ui/src/atoms/button/button.spec.tsx create mode 100644 libs/ui/src/atoms/button/button.tsx create mode 100644 libs/ui/src/atoms/button/index.ts create mode 100644 libs/ui/src/atoms/index.ts create mode 100644 libs/ui/src/organisms/index.ts create mode 100644 libs/ui/src/organisms/navbar/index.ts create mode 100644 libs/ui/src/organisms/navbar/navbar.tsx create mode 100644 libs/ui/tsconfig.json create mode 100644 libs/ui/tsconfig.lib.json create mode 100644 libs/ui/tsconfig.spec.json create mode 100644 libs/ui/vite.config.ts create mode 100644 libs/ui/vitest.setup.ts create mode 100644 libs/utils/.babelrc create mode 100644 libs/utils/README.md create mode 100644 libs/utils/eslint.config.mjs create mode 100644 libs/utils/package.json create mode 100644 libs/utils/project.json create mode 100644 libs/utils/src/axios/api.ts create mode 100644 libs/utils/src/axios/index.ts create mode 100644 libs/utils/src/index.ts create mode 100644 libs/utils/src/react-query/client.ts create mode 100644 libs/utils/src/react-query/index.ts create mode 100644 libs/utils/src/react-query/provider.tsx create mode 100644 libs/utils/src/react-router/file-based-routing.tsx create mode 100644 libs/utils/src/react-router/index.ts create mode 100644 libs/utils/src/tailwind-merge/cn.ts create mode 100644 libs/utils/src/tailwind-merge/index.ts create mode 100644 libs/utils/tsconfig.json create mode 100644 libs/utils/tsconfig.lib.json create mode 100644 libs/utils/tsconfig.spec.json create mode 100644 libs/utils/vite.config.ts create mode 100644 project.json diff --git a/.verdaccio/config.yml b/.verdaccio/config.yml new file mode 100644 index 0000000..f74420f --- /dev/null +++ b/.verdaccio/config.yml @@ -0,0 +1,28 @@ +# path to a directory with all packages +storage: ../tmp/local-registry/storage + +# a list of other known repositories we can talk to +uplinks: + npmjs: + url: https://registry.npmjs.org/ + maxage: 60m + +packages: + '**': + # give all users (including non-authenticated users) full access + # because it is a local registry + access: $all + publish: $all + unpublish: $all + + # if package is not available locally, proxy requests to npm registry + proxy: npmjs + +# log settings +log: + type: stdout + format: pretty + level: warn + +publish: + allow_offline: true # set offline to true to allow publish offline diff --git a/apps/dimentorin/postcss.config.mjs b/apps/dimentorin/postcss.config.mjs new file mode 100644 index 0000000..a34a3d5 --- /dev/null +++ b/apps/dimentorin/postcss.config.mjs @@ -0,0 +1,5 @@ +export default { + plugins: { + '@tailwindcss/postcss': {}, + }, +}; diff --git a/apps/dimentorin/src/app/app.module.css b/apps/dimentorin/src/app/app.module.css deleted file mode 100644 index 7b88fba..0000000 --- a/apps/dimentorin/src/app/app.module.css +++ /dev/null @@ -1 +0,0 @@ -/* Your styles goes here. */ diff --git a/apps/dimentorin/src/app/app.spec.tsx b/apps/dimentorin/src/app/app.spec.tsx deleted file mode 100644 index 279c1f2..0000000 --- a/apps/dimentorin/src/app/app.spec.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { render } from '@testing-library/react'; - -import App from './app'; - -describe('App', () => { - it('should render successfully', () => { - const { baseElement } = render(); - expect(baseElement).toBeTruthy(); - }); - - it('should have a greeting as the title', () => { - const { getAllByText } = render(); - expect( - getAllByText(new RegExp('Welcome dimentorin', 'gi')).length > 0 - ).toBeTruthy(); - }); -}); diff --git a/apps/dimentorin/src/app/app.tsx b/apps/dimentorin/src/app/app.tsx deleted file mode 100644 index 324bf5d..0000000 --- a/apps/dimentorin/src/app/app.tsx +++ /dev/null @@ -1,13 +0,0 @@ -// Uncomment this line to use CSS modules -// import styles from './app.module.css'; -import NxWelcome from './nx-welcome'; - -export function App() { - return ( -
- -
- ); -} - -export default App; diff --git a/apps/dimentorin/src/app/nx-welcome.tsx b/apps/dimentorin/src/app/nx-welcome.tsx deleted file mode 100644 index f3c5c7a..0000000 --- a/apps/dimentorin/src/app/nx-welcome.tsx +++ /dev/null @@ -1,856 +0,0 @@ -/* - * * * * * * * * * * * * * * * * * * * * * * * * * * * * - This is a starter component and can be deleted. - * * * * * * * * * * * * * * * * * * * * * * * * * * * * - Delete this file and get started with your project! - * * * * * * * * * * * * * * * * * * * * * * * * * * * * - */ -export function NxWelcome({ title }: { title: string }) { - return ( - <> -