From 16b4cce1186a9f01b942f1e355499f0ffd204a07 Mon Sep 17 00:00:00 2001 From: Mangiang Date: Fri, 17 Dec 2021 01:02:12 -0500 Subject: [PATCH 1/6] feat: Create new db app --- db | 1 + {items => items-old}/README.md | 0 {items => items-old}/api/.editorconfig | 0 {items => items-old}/api/.env.example | 0 {items => items-old}/api/.styleci.yml | 0 {items => items-old}/api/README.md | 0 {items => items-old}/api/app/Config/GiteaConfig.php | 0 .../api/app/Console/Commands/.gitkeep | 0 .../api/app/Console/Commands/RefreshItemsCache.php | 0 {items => items-old}/api/app/Console/Kernel.php | 0 .../api/app/Data/ItemsCollection.php | 0 {items => items-old}/api/app/Events/Event.php | 0 .../api/app/Events/ExampleEvent.php | 0 {items => items-old}/api/app/Exceptions/Handler.php | 0 .../api/app/Exceptions/ItemNotFoundException.php | 0 .../api/app/Http/Controllers/Controller.php | 0 .../api/app/Http/Controllers/ItemController.php | 0 .../api/app/Http/Middleware/Authenticate.php | 0 .../api/app/Http/Middleware/ExampleMiddleware.php | 0 {items => items-old}/api/app/Jobs/ExampleJob.php | 0 {items => items-old}/api/app/Jobs/Job.php | 0 .../api/app/Listeners/ExampleListener.php | 0 {items => items-old}/api/app/Models/User.php | 0 .../api/app/Providers/AppServiceProvider.php | 0 .../api/app/Providers/AuthServiceProvider.php | 0 .../api/app/Providers/EventServiceProvider.php | 0 {items => items-old}/api/artisan | 0 {items => items-old}/api/bootstrap/app.php | 0 {items => items-old}/api/composer.json | 0 {items => items-old}/api/composer.lock | 0 {items => items-old}/api/config/cors.php | 0 .../api/database/factories/UserFactory.php | 0 .../api/database/migrations/.gitkeep | 0 .../api/database/seeders/DatabaseSeeder.php | 0 {items => items-old}/api/deploy.php | 0 {items => items-old}/api/phpunit.xml | 0 {items => items-old}/api/public/.htaccess | 0 {items => items-old}/api/public/asset-manifest.json | 0 {items => items-old}/api/public/favicon.ico | Bin {items => items-old}/api/public/index.php | 0 {items => items-old}/api/public/logo192.png | Bin {items => items-old}/api/public/logo512.png | Bin {items => items-old}/api/public/manifest.json | 0 {items => items-old}/api/public/robots.txt | 0 .../api/public/static/js/2.0d919e81.chunk.js | 0 .../static/js/2.0d919e81.chunk.js.LICENSE.txt | 0 .../api/public/static/js/2.0d919e81.chunk.js.map | 0 .../api/public/static/js/2.d37e78ec.chunk.js | 0 .../static/js/2.d37e78ec.chunk.js.LICENSE.txt | 0 .../api/public/static/js/2.d37e78ec.chunk.js.map | 0 .../api/public/static/js/3.f4122446.chunk.js | 0 .../api/public/static/js/3.f4122446.chunk.js.map | 0 .../api/public/static/js/3.ff1076df.chunk.js | 0 .../api/public/static/js/3.ff1076df.chunk.js.map | 0 .../api/public/static/js/main.4a751c81.chunk.js | 0 .../api/public/static/js/main.4a751c81.chunk.js.map | 0 .../api/public/static/js/main.4f639ccc.chunk.js | 0 .../api/public/static/js/main.4f639ccc.chunk.js.map | 0 .../api/public/static/js/runtime-main.45092312.js | 0 .../public/static/js/runtime-main.45092312.js.map | 0 .../api/public/static/js/runtime-main.bdac3883.js | 0 .../public/static/js/runtime-main.bdac3883.js.map | 0 {items => items-old}/api/resources/views/.gitkeep | 0 .../api/resources/views/app.blade.php | 0 {items => items-old}/api/routes/web.php | 0 {items => items-old}/api/storage/app/.gitignore | 0 .../api/storage/framework/cache/.gitignore | 0 .../api/storage/framework/cache/data/.gitignore | 0 .../api/storage/framework/views/.gitignore | 0 {items => items-old}/api/storage/logs/.gitignore | 0 {items => items-old}/api/tests/ExampleTest.php | 0 {items => items-old}/api/tests/TestCase.php | 0 {items => items-old}/docs/Walkthrough.md | 0 {items => items-old}/frontend/.env.example | 0 {items => items-old}/frontend/LICENSE | 0 {items => items-old}/frontend/README.md | 0 {items => items-old}/frontend/cypress.json | 0 {items => items-old}/frontend/documentation/cra.md | 0 {items => items-old}/frontend/package.json | 0 {items => items-old}/frontend/public/favico.ico | Bin {items => items-old}/frontend/public/favico.svg | 0 {items => items-old}/frontend/public/index.html | 0 {items => items-old}/frontend/public/manifest.json | 0 {items => items-old}/frontend/public/robots.txt | 0 {items => items-old}/frontend/src/App.tsx | 0 .../frontend/src/components/DarkModeToggle.tsx | 0 .../frontend/src/components/Footer.tsx | 0 .../frontend/src/components/Header.tsx | 0 .../frontend/src/components/HeaderForm.tsx | 0 .../frontend/src/components/JsonTheme.tsx | 0 .../frontend/src/components/LocaleSelect.tsx | 0 .../src/cypress/fixtures/condensed_milk.json | 0 .../cypress/integration/dark-mode-toggle.spec.tsx | 0 .../src/cypress/integration/footer.spec.tsx | 0 .../src/cypress/integration/header.spec.tsx | 0 .../src/cypress/integration/json-theme.spec.tsx | 0 .../src/cypress/integration/locale-select.spec.tsx | 0 .../src/cypress/integration/search.spec.tsx | 0 .../src/cypress/integration/url-check.spec.tsx | 0 .../frontend/src/cypress/nginx_config/default.conf | 0 .../frontend/src/cypress/plugin/index.js | 0 .../frontend/src/cypress/support/index.js | 0 .../frontend/src/dataaccess/ItemBackend.ts | 0 .../frontend/src/dataaccess/SaveKeys.ts | 0 {items => items-old}/frontend/src/dto/ItemData.ts | 0 .../frontend/src/dto/ItemHierarchy.ts | 0 {items => items-old}/frontend/src/dto/ItemLocale.ts | 0 {items => items-old}/frontend/src/dto/ItemOption.ts | 0 .../frontend/src/dto/ItemWithLocale.ts | 0 {items => items-old}/frontend/src/index.tsx | 0 .../frontend/src/pages/InteractiveArea.tsx | 0 .../frontend/src/pages/MainPage.tsx | 0 .../frontend/src/pages/PageNotFound.tsx | 0 .../mainPageComponents/NavigationBreadcrumb.tsx | 0 .../src/pages/mainPageComponents/SearchArea.tsx | 0 .../frontend/src/react-app-env.d.ts | 0 .../frontend/src/reportWebVitals.ts | 0 {items => items-old}/frontend/src/setupTests.ts | 0 .../frontend/src/state/GlobalState.ts | 0 .../frontend/src/state/ReactJsonViewThemes.ts | 0 .../frontend/src/state/ThemeMode.ts | 0 {items => items-old}/frontend/src/theme/Theme.ts | 0 .../frontend/src/theme/darkTheme.ts | 0 .../frontend/src/theme/lightTheme.ts | 0 {items => items-old}/frontend/tsconfig.json | 0 {items => items-old}/frontend/yarn.lock | 0 126 files changed, 1 insertion(+) create mode 160000 db rename {items => items-old}/README.md (100%) rename {items => items-old}/api/.editorconfig (100%) rename {items => items-old}/api/.env.example (100%) rename {items => items-old}/api/.styleci.yml (100%) rename {items => items-old}/api/README.md (100%) rename {items => items-old}/api/app/Config/GiteaConfig.php (100%) rename {items => items-old}/api/app/Console/Commands/.gitkeep (100%) rename {items => items-old}/api/app/Console/Commands/RefreshItemsCache.php (100%) rename {items => items-old}/api/app/Console/Kernel.php (100%) rename {items => items-old}/api/app/Data/ItemsCollection.php (100%) rename {items => items-old}/api/app/Events/Event.php (100%) rename {items => items-old}/api/app/Events/ExampleEvent.php (100%) rename {items => items-old}/api/app/Exceptions/Handler.php (100%) rename {items => items-old}/api/app/Exceptions/ItemNotFoundException.php (100%) rename {items => items-old}/api/app/Http/Controllers/Controller.php (100%) rename {items => items-old}/api/app/Http/Controllers/ItemController.php (100%) rename {items => items-old}/api/app/Http/Middleware/Authenticate.php (100%) rename {items => items-old}/api/app/Http/Middleware/ExampleMiddleware.php (100%) rename {items => items-old}/api/app/Jobs/ExampleJob.php (100%) rename {items => items-old}/api/app/Jobs/Job.php (100%) rename {items => items-old}/api/app/Listeners/ExampleListener.php (100%) rename {items => items-old}/api/app/Models/User.php (100%) rename {items => items-old}/api/app/Providers/AppServiceProvider.php (100%) rename {items => items-old}/api/app/Providers/AuthServiceProvider.php (100%) rename {items => items-old}/api/app/Providers/EventServiceProvider.php (100%) rename {items => items-old}/api/artisan (100%) rename {items => items-old}/api/bootstrap/app.php (100%) rename {items => items-old}/api/composer.json (100%) rename {items => items-old}/api/composer.lock (100%) rename {items => items-old}/api/config/cors.php (100%) rename {items => items-old}/api/database/factories/UserFactory.php (100%) rename {items => items-old}/api/database/migrations/.gitkeep (100%) rename {items => items-old}/api/database/seeders/DatabaseSeeder.php (100%) rename {items => items-old}/api/deploy.php (100%) rename {items => items-old}/api/phpunit.xml (100%) rename {items => items-old}/api/public/.htaccess (100%) rename {items => items-old}/api/public/asset-manifest.json (100%) rename {items => items-old}/api/public/favicon.ico (100%) rename {items => items-old}/api/public/index.php (100%) rename {items => items-old}/api/public/logo192.png (100%) rename {items => items-old}/api/public/logo512.png (100%) rename {items => items-old}/api/public/manifest.json (100%) rename {items => items-old}/api/public/robots.txt (100%) rename {items => items-old}/api/public/static/js/2.0d919e81.chunk.js (100%) rename {items => items-old}/api/public/static/js/2.0d919e81.chunk.js.LICENSE.txt (100%) rename {items => items-old}/api/public/static/js/2.0d919e81.chunk.js.map (100%) rename {items => items-old}/api/public/static/js/2.d37e78ec.chunk.js (100%) rename {items => items-old}/api/public/static/js/2.d37e78ec.chunk.js.LICENSE.txt (100%) rename {items => items-old}/api/public/static/js/2.d37e78ec.chunk.js.map (100%) rename {items => items-old}/api/public/static/js/3.f4122446.chunk.js (100%) rename {items => items-old}/api/public/static/js/3.f4122446.chunk.js.map (100%) rename {items => items-old}/api/public/static/js/3.ff1076df.chunk.js (100%) rename {items => items-old}/api/public/static/js/3.ff1076df.chunk.js.map (100%) rename {items => items-old}/api/public/static/js/main.4a751c81.chunk.js (100%) rename {items => items-old}/api/public/static/js/main.4a751c81.chunk.js.map (100%) rename {items => items-old}/api/public/static/js/main.4f639ccc.chunk.js (100%) rename {items => items-old}/api/public/static/js/main.4f639ccc.chunk.js.map (100%) rename {items => items-old}/api/public/static/js/runtime-main.45092312.js (100%) rename {items => items-old}/api/public/static/js/runtime-main.45092312.js.map (100%) rename {items => items-old}/api/public/static/js/runtime-main.bdac3883.js (100%) rename {items => items-old}/api/public/static/js/runtime-main.bdac3883.js.map (100%) rename {items => items-old}/api/resources/views/.gitkeep (100%) rename {items => items-old}/api/resources/views/app.blade.php (100%) rename {items => items-old}/api/routes/web.php (100%) rename {items => items-old}/api/storage/app/.gitignore (100%) rename {items => items-old}/api/storage/framework/cache/.gitignore (100%) rename {items => items-old}/api/storage/framework/cache/data/.gitignore (100%) rename {items => items-old}/api/storage/framework/views/.gitignore (100%) rename {items => items-old}/api/storage/logs/.gitignore (100%) rename {items => items-old}/api/tests/ExampleTest.php (100%) rename {items => items-old}/api/tests/TestCase.php (100%) rename {items => items-old}/docs/Walkthrough.md (100%) rename {items => items-old}/frontend/.env.example (100%) rename {items => items-old}/frontend/LICENSE (100%) rename {items => items-old}/frontend/README.md (100%) rename {items => items-old}/frontend/cypress.json (100%) rename {items => items-old}/frontend/documentation/cra.md (100%) rename {items => items-old}/frontend/package.json (100%) rename {items => items-old}/frontend/public/favico.ico (100%) rename {items => items-old}/frontend/public/favico.svg (100%) rename {items => items-old}/frontend/public/index.html (100%) rename {items => items-old}/frontend/public/manifest.json (100%) rename {items => items-old}/frontend/public/robots.txt (100%) rename {items => items-old}/frontend/src/App.tsx (100%) rename {items => items-old}/frontend/src/components/DarkModeToggle.tsx (100%) rename {items => items-old}/frontend/src/components/Footer.tsx (100%) rename {items => items-old}/frontend/src/components/Header.tsx (100%) rename {items => items-old}/frontend/src/components/HeaderForm.tsx (100%) rename {items => items-old}/frontend/src/components/JsonTheme.tsx (100%) rename {items => items-old}/frontend/src/components/LocaleSelect.tsx (100%) rename {items => items-old}/frontend/src/cypress/fixtures/condensed_milk.json (100%) rename {items => items-old}/frontend/src/cypress/integration/dark-mode-toggle.spec.tsx (100%) rename {items => items-old}/frontend/src/cypress/integration/footer.spec.tsx (100%) rename {items => items-old}/frontend/src/cypress/integration/header.spec.tsx (100%) rename {items => items-old}/frontend/src/cypress/integration/json-theme.spec.tsx (100%) rename {items => items-old}/frontend/src/cypress/integration/locale-select.spec.tsx (100%) rename {items => items-old}/frontend/src/cypress/integration/search.spec.tsx (100%) rename {items => items-old}/frontend/src/cypress/integration/url-check.spec.tsx (100%) rename {items => items-old}/frontend/src/cypress/nginx_config/default.conf (100%) rename {items => items-old}/frontend/src/cypress/plugin/index.js (100%) rename {items => items-old}/frontend/src/cypress/support/index.js (100%) rename {items => items-old}/frontend/src/dataaccess/ItemBackend.ts (100%) rename {items => items-old}/frontend/src/dataaccess/SaveKeys.ts (100%) rename {items => items-old}/frontend/src/dto/ItemData.ts (100%) rename {items => items-old}/frontend/src/dto/ItemHierarchy.ts (100%) rename {items => items-old}/frontend/src/dto/ItemLocale.ts (100%) rename {items => items-old}/frontend/src/dto/ItemOption.ts (100%) rename {items => items-old}/frontend/src/dto/ItemWithLocale.ts (100%) rename {items => items-old}/frontend/src/index.tsx (100%) rename {items => items-old}/frontend/src/pages/InteractiveArea.tsx (100%) rename {items => items-old}/frontend/src/pages/MainPage.tsx (100%) rename {items => items-old}/frontend/src/pages/PageNotFound.tsx (100%) rename {items => items-old}/frontend/src/pages/mainPageComponents/NavigationBreadcrumb.tsx (100%) rename {items => items-old}/frontend/src/pages/mainPageComponents/SearchArea.tsx (100%) rename {items => items-old}/frontend/src/react-app-env.d.ts (100%) rename {items => items-old}/frontend/src/reportWebVitals.ts (100%) rename {items => items-old}/frontend/src/setupTests.ts (100%) rename {items => items-old}/frontend/src/state/GlobalState.ts (100%) rename {items => items-old}/frontend/src/state/ReactJsonViewThemes.ts (100%) rename {items => items-old}/frontend/src/state/ThemeMode.ts (100%) rename {items => items-old}/frontend/src/theme/Theme.ts (100%) rename {items => items-old}/frontend/src/theme/darkTheme.ts (100%) rename {items => items-old}/frontend/src/theme/lightTheme.ts (100%) rename {items => items-old}/frontend/tsconfig.json (100%) rename {items => items-old}/frontend/yarn.lock (100%) diff --git a/db b/db new file mode 160000 index 0000000..9e1c6c9 --- /dev/null +++ b/db @@ -0,0 +1 @@ +Subproject commit 9e1c6c96da221f7c5434816aaa3c933d1622cb16 diff --git a/items/README.md b/items-old/README.md similarity index 100% rename from items/README.md rename to items-old/README.md diff --git a/items/api/.editorconfig b/items-old/api/.editorconfig similarity index 100% rename from items/api/.editorconfig rename to items-old/api/.editorconfig diff --git a/items/api/.env.example b/items-old/api/.env.example similarity index 100% rename from items/api/.env.example rename to items-old/api/.env.example diff --git a/items/api/.styleci.yml b/items-old/api/.styleci.yml similarity index 100% rename from items/api/.styleci.yml rename to items-old/api/.styleci.yml diff --git a/items/api/README.md b/items-old/api/README.md similarity index 100% rename from items/api/README.md rename to items-old/api/README.md diff --git a/items/api/app/Config/GiteaConfig.php b/items-old/api/app/Config/GiteaConfig.php similarity index 100% rename from items/api/app/Config/GiteaConfig.php rename to items-old/api/app/Config/GiteaConfig.php diff --git a/items/api/app/Console/Commands/.gitkeep b/items-old/api/app/Console/Commands/.gitkeep similarity index 100% rename from items/api/app/Console/Commands/.gitkeep rename to items-old/api/app/Console/Commands/.gitkeep diff --git a/items/api/app/Console/Commands/RefreshItemsCache.php b/items-old/api/app/Console/Commands/RefreshItemsCache.php similarity index 100% rename from items/api/app/Console/Commands/RefreshItemsCache.php rename to items-old/api/app/Console/Commands/RefreshItemsCache.php diff --git a/items/api/app/Console/Kernel.php b/items-old/api/app/Console/Kernel.php similarity index 100% rename from items/api/app/Console/Kernel.php rename to items-old/api/app/Console/Kernel.php diff --git a/items/api/app/Data/ItemsCollection.php b/items-old/api/app/Data/ItemsCollection.php similarity index 100% rename from items/api/app/Data/ItemsCollection.php rename to items-old/api/app/Data/ItemsCollection.php diff --git a/items/api/app/Events/Event.php b/items-old/api/app/Events/Event.php similarity index 100% rename from items/api/app/Events/Event.php rename to items-old/api/app/Events/Event.php diff --git a/items/api/app/Events/ExampleEvent.php b/items-old/api/app/Events/ExampleEvent.php similarity index 100% rename from items/api/app/Events/ExampleEvent.php rename to items-old/api/app/Events/ExampleEvent.php diff --git a/items/api/app/Exceptions/Handler.php b/items-old/api/app/Exceptions/Handler.php similarity index 100% rename from items/api/app/Exceptions/Handler.php rename to items-old/api/app/Exceptions/Handler.php diff --git a/items/api/app/Exceptions/ItemNotFoundException.php b/items-old/api/app/Exceptions/ItemNotFoundException.php similarity index 100% rename from items/api/app/Exceptions/ItemNotFoundException.php rename to items-old/api/app/Exceptions/ItemNotFoundException.php diff --git a/items/api/app/Http/Controllers/Controller.php b/items-old/api/app/Http/Controllers/Controller.php similarity index 100% rename from items/api/app/Http/Controllers/Controller.php rename to items-old/api/app/Http/Controllers/Controller.php diff --git a/items/api/app/Http/Controllers/ItemController.php b/items-old/api/app/Http/Controllers/ItemController.php similarity index 100% rename from items/api/app/Http/Controllers/ItemController.php rename to items-old/api/app/Http/Controllers/ItemController.php diff --git a/items/api/app/Http/Middleware/Authenticate.php b/items-old/api/app/Http/Middleware/Authenticate.php similarity index 100% rename from items/api/app/Http/Middleware/Authenticate.php rename to items-old/api/app/Http/Middleware/Authenticate.php diff --git a/items/api/app/Http/Middleware/ExampleMiddleware.php b/items-old/api/app/Http/Middleware/ExampleMiddleware.php similarity index 100% rename from items/api/app/Http/Middleware/ExampleMiddleware.php rename to items-old/api/app/Http/Middleware/ExampleMiddleware.php diff --git a/items/api/app/Jobs/ExampleJob.php b/items-old/api/app/Jobs/ExampleJob.php similarity index 100% rename from items/api/app/Jobs/ExampleJob.php rename to items-old/api/app/Jobs/ExampleJob.php diff --git a/items/api/app/Jobs/Job.php b/items-old/api/app/Jobs/Job.php similarity index 100% rename from items/api/app/Jobs/Job.php rename to items-old/api/app/Jobs/Job.php diff --git a/items/api/app/Listeners/ExampleListener.php b/items-old/api/app/Listeners/ExampleListener.php similarity index 100% rename from items/api/app/Listeners/ExampleListener.php rename to items-old/api/app/Listeners/ExampleListener.php diff --git a/items/api/app/Models/User.php b/items-old/api/app/Models/User.php similarity index 100% rename from items/api/app/Models/User.php rename to items-old/api/app/Models/User.php diff --git a/items/api/app/Providers/AppServiceProvider.php b/items-old/api/app/Providers/AppServiceProvider.php similarity index 100% rename from items/api/app/Providers/AppServiceProvider.php rename to items-old/api/app/Providers/AppServiceProvider.php diff --git a/items/api/app/Providers/AuthServiceProvider.php b/items-old/api/app/Providers/AuthServiceProvider.php similarity index 100% rename from items/api/app/Providers/AuthServiceProvider.php rename to items-old/api/app/Providers/AuthServiceProvider.php diff --git a/items/api/app/Providers/EventServiceProvider.php b/items-old/api/app/Providers/EventServiceProvider.php similarity index 100% rename from items/api/app/Providers/EventServiceProvider.php rename to items-old/api/app/Providers/EventServiceProvider.php diff --git a/items/api/artisan b/items-old/api/artisan similarity index 100% rename from items/api/artisan rename to items-old/api/artisan diff --git a/items/api/bootstrap/app.php b/items-old/api/bootstrap/app.php similarity index 100% rename from items/api/bootstrap/app.php rename to items-old/api/bootstrap/app.php diff --git a/items/api/composer.json b/items-old/api/composer.json similarity index 100% rename from items/api/composer.json rename to items-old/api/composer.json diff --git a/items/api/composer.lock b/items-old/api/composer.lock similarity index 100% rename from items/api/composer.lock rename to items-old/api/composer.lock diff --git a/items/api/config/cors.php b/items-old/api/config/cors.php similarity index 100% rename from items/api/config/cors.php rename to items-old/api/config/cors.php diff --git a/items/api/database/factories/UserFactory.php b/items-old/api/database/factories/UserFactory.php similarity index 100% rename from items/api/database/factories/UserFactory.php rename to items-old/api/database/factories/UserFactory.php diff --git a/items/api/database/migrations/.gitkeep b/items-old/api/database/migrations/.gitkeep similarity index 100% rename from items/api/database/migrations/.gitkeep rename to items-old/api/database/migrations/.gitkeep diff --git a/items/api/database/seeders/DatabaseSeeder.php b/items-old/api/database/seeders/DatabaseSeeder.php similarity index 100% rename from items/api/database/seeders/DatabaseSeeder.php rename to items-old/api/database/seeders/DatabaseSeeder.php diff --git a/items/api/deploy.php b/items-old/api/deploy.php similarity index 100% rename from items/api/deploy.php rename to items-old/api/deploy.php diff --git a/items/api/phpunit.xml b/items-old/api/phpunit.xml similarity index 100% rename from items/api/phpunit.xml rename to items-old/api/phpunit.xml diff --git a/items/api/public/.htaccess b/items-old/api/public/.htaccess similarity index 100% rename from items/api/public/.htaccess rename to items-old/api/public/.htaccess diff --git a/items/api/public/asset-manifest.json b/items-old/api/public/asset-manifest.json similarity index 100% rename from items/api/public/asset-manifest.json rename to items-old/api/public/asset-manifest.json diff --git a/items/api/public/favicon.ico b/items-old/api/public/favicon.ico similarity index 100% rename from items/api/public/favicon.ico rename to items-old/api/public/favicon.ico diff --git a/items/api/public/index.php b/items-old/api/public/index.php similarity index 100% rename from items/api/public/index.php rename to items-old/api/public/index.php diff --git a/items/api/public/logo192.png b/items-old/api/public/logo192.png similarity index 100% rename from items/api/public/logo192.png rename to items-old/api/public/logo192.png diff --git a/items/api/public/logo512.png b/items-old/api/public/logo512.png similarity index 100% rename from items/api/public/logo512.png rename to items-old/api/public/logo512.png diff --git a/items/api/public/manifest.json b/items-old/api/public/manifest.json similarity index 100% rename from items/api/public/manifest.json rename to items-old/api/public/manifest.json diff --git a/items/api/public/robots.txt b/items-old/api/public/robots.txt similarity index 100% rename from items/api/public/robots.txt rename to items-old/api/public/robots.txt diff --git a/items/api/public/static/js/2.0d919e81.chunk.js b/items-old/api/public/static/js/2.0d919e81.chunk.js similarity index 100% rename from items/api/public/static/js/2.0d919e81.chunk.js rename to items-old/api/public/static/js/2.0d919e81.chunk.js diff --git a/items/api/public/static/js/2.0d919e81.chunk.js.LICENSE.txt b/items-old/api/public/static/js/2.0d919e81.chunk.js.LICENSE.txt similarity index 100% rename from items/api/public/static/js/2.0d919e81.chunk.js.LICENSE.txt rename to items-old/api/public/static/js/2.0d919e81.chunk.js.LICENSE.txt diff --git a/items/api/public/static/js/2.0d919e81.chunk.js.map b/items-old/api/public/static/js/2.0d919e81.chunk.js.map similarity index 100% rename from items/api/public/static/js/2.0d919e81.chunk.js.map rename to items-old/api/public/static/js/2.0d919e81.chunk.js.map diff --git a/items/api/public/static/js/2.d37e78ec.chunk.js b/items-old/api/public/static/js/2.d37e78ec.chunk.js similarity index 100% rename from items/api/public/static/js/2.d37e78ec.chunk.js rename to items-old/api/public/static/js/2.d37e78ec.chunk.js diff --git a/items/api/public/static/js/2.d37e78ec.chunk.js.LICENSE.txt b/items-old/api/public/static/js/2.d37e78ec.chunk.js.LICENSE.txt similarity index 100% rename from items/api/public/static/js/2.d37e78ec.chunk.js.LICENSE.txt rename to items-old/api/public/static/js/2.d37e78ec.chunk.js.LICENSE.txt diff --git a/items/api/public/static/js/2.d37e78ec.chunk.js.map b/items-old/api/public/static/js/2.d37e78ec.chunk.js.map similarity index 100% rename from items/api/public/static/js/2.d37e78ec.chunk.js.map rename to items-old/api/public/static/js/2.d37e78ec.chunk.js.map diff --git a/items/api/public/static/js/3.f4122446.chunk.js b/items-old/api/public/static/js/3.f4122446.chunk.js similarity index 100% rename from items/api/public/static/js/3.f4122446.chunk.js rename to items-old/api/public/static/js/3.f4122446.chunk.js diff --git a/items/api/public/static/js/3.f4122446.chunk.js.map b/items-old/api/public/static/js/3.f4122446.chunk.js.map similarity index 100% rename from items/api/public/static/js/3.f4122446.chunk.js.map rename to items-old/api/public/static/js/3.f4122446.chunk.js.map diff --git a/items/api/public/static/js/3.ff1076df.chunk.js b/items-old/api/public/static/js/3.ff1076df.chunk.js similarity index 100% rename from items/api/public/static/js/3.ff1076df.chunk.js rename to items-old/api/public/static/js/3.ff1076df.chunk.js diff --git a/items/api/public/static/js/3.ff1076df.chunk.js.map b/items-old/api/public/static/js/3.ff1076df.chunk.js.map similarity index 100% rename from items/api/public/static/js/3.ff1076df.chunk.js.map rename to items-old/api/public/static/js/3.ff1076df.chunk.js.map diff --git a/items/api/public/static/js/main.4a751c81.chunk.js b/items-old/api/public/static/js/main.4a751c81.chunk.js similarity index 100% rename from items/api/public/static/js/main.4a751c81.chunk.js rename to items-old/api/public/static/js/main.4a751c81.chunk.js diff --git a/items/api/public/static/js/main.4a751c81.chunk.js.map b/items-old/api/public/static/js/main.4a751c81.chunk.js.map similarity index 100% rename from items/api/public/static/js/main.4a751c81.chunk.js.map rename to items-old/api/public/static/js/main.4a751c81.chunk.js.map diff --git a/items/api/public/static/js/main.4f639ccc.chunk.js b/items-old/api/public/static/js/main.4f639ccc.chunk.js similarity index 100% rename from items/api/public/static/js/main.4f639ccc.chunk.js rename to items-old/api/public/static/js/main.4f639ccc.chunk.js diff --git a/items/api/public/static/js/main.4f639ccc.chunk.js.map b/items-old/api/public/static/js/main.4f639ccc.chunk.js.map similarity index 100% rename from items/api/public/static/js/main.4f639ccc.chunk.js.map rename to items-old/api/public/static/js/main.4f639ccc.chunk.js.map diff --git a/items/api/public/static/js/runtime-main.45092312.js b/items-old/api/public/static/js/runtime-main.45092312.js similarity index 100% rename from items/api/public/static/js/runtime-main.45092312.js rename to items-old/api/public/static/js/runtime-main.45092312.js diff --git a/items/api/public/static/js/runtime-main.45092312.js.map b/items-old/api/public/static/js/runtime-main.45092312.js.map similarity index 100% rename from items/api/public/static/js/runtime-main.45092312.js.map rename to items-old/api/public/static/js/runtime-main.45092312.js.map diff --git a/items/api/public/static/js/runtime-main.bdac3883.js b/items-old/api/public/static/js/runtime-main.bdac3883.js similarity index 100% rename from items/api/public/static/js/runtime-main.bdac3883.js rename to items-old/api/public/static/js/runtime-main.bdac3883.js diff --git a/items/api/public/static/js/runtime-main.bdac3883.js.map b/items-old/api/public/static/js/runtime-main.bdac3883.js.map similarity index 100% rename from items/api/public/static/js/runtime-main.bdac3883.js.map rename to items-old/api/public/static/js/runtime-main.bdac3883.js.map diff --git a/items/api/resources/views/.gitkeep b/items-old/api/resources/views/.gitkeep similarity index 100% rename from items/api/resources/views/.gitkeep rename to items-old/api/resources/views/.gitkeep diff --git a/items/api/resources/views/app.blade.php b/items-old/api/resources/views/app.blade.php similarity index 100% rename from items/api/resources/views/app.blade.php rename to items-old/api/resources/views/app.blade.php diff --git a/items/api/routes/web.php b/items-old/api/routes/web.php similarity index 100% rename from items/api/routes/web.php rename to items-old/api/routes/web.php diff --git a/items/api/storage/app/.gitignore b/items-old/api/storage/app/.gitignore similarity index 100% rename from items/api/storage/app/.gitignore rename to items-old/api/storage/app/.gitignore diff --git a/items/api/storage/framework/cache/.gitignore b/items-old/api/storage/framework/cache/.gitignore similarity index 100% rename from items/api/storage/framework/cache/.gitignore rename to items-old/api/storage/framework/cache/.gitignore diff --git a/items/api/storage/framework/cache/data/.gitignore b/items-old/api/storage/framework/cache/data/.gitignore similarity index 100% rename from items/api/storage/framework/cache/data/.gitignore rename to items-old/api/storage/framework/cache/data/.gitignore diff --git a/items/api/storage/framework/views/.gitignore b/items-old/api/storage/framework/views/.gitignore similarity index 100% rename from items/api/storage/framework/views/.gitignore rename to items-old/api/storage/framework/views/.gitignore diff --git a/items/api/storage/logs/.gitignore b/items-old/api/storage/logs/.gitignore similarity index 100% rename from items/api/storage/logs/.gitignore rename to items-old/api/storage/logs/.gitignore diff --git a/items/api/tests/ExampleTest.php b/items-old/api/tests/ExampleTest.php similarity index 100% rename from items/api/tests/ExampleTest.php rename to items-old/api/tests/ExampleTest.php diff --git a/items/api/tests/TestCase.php b/items-old/api/tests/TestCase.php similarity index 100% rename from items/api/tests/TestCase.php rename to items-old/api/tests/TestCase.php diff --git a/items/docs/Walkthrough.md b/items-old/docs/Walkthrough.md similarity index 100% rename from items/docs/Walkthrough.md rename to items-old/docs/Walkthrough.md diff --git a/items/frontend/.env.example b/items-old/frontend/.env.example similarity index 100% rename from items/frontend/.env.example rename to items-old/frontend/.env.example diff --git a/items/frontend/LICENSE b/items-old/frontend/LICENSE similarity index 100% rename from items/frontend/LICENSE rename to items-old/frontend/LICENSE diff --git a/items/frontend/README.md b/items-old/frontend/README.md similarity index 100% rename from items/frontend/README.md rename to items-old/frontend/README.md diff --git a/items/frontend/cypress.json b/items-old/frontend/cypress.json similarity index 100% rename from items/frontend/cypress.json rename to items-old/frontend/cypress.json diff --git a/items/frontend/documentation/cra.md b/items-old/frontend/documentation/cra.md similarity index 100% rename from items/frontend/documentation/cra.md rename to items-old/frontend/documentation/cra.md diff --git a/items/frontend/package.json b/items-old/frontend/package.json similarity index 100% rename from items/frontend/package.json rename to items-old/frontend/package.json diff --git a/items/frontend/public/favico.ico b/items-old/frontend/public/favico.ico similarity index 100% rename from items/frontend/public/favico.ico rename to items-old/frontend/public/favico.ico diff --git a/items/frontend/public/favico.svg b/items-old/frontend/public/favico.svg similarity index 100% rename from items/frontend/public/favico.svg rename to items-old/frontend/public/favico.svg diff --git a/items/frontend/public/index.html b/items-old/frontend/public/index.html similarity index 100% rename from items/frontend/public/index.html rename to items-old/frontend/public/index.html diff --git a/items/frontend/public/manifest.json b/items-old/frontend/public/manifest.json similarity index 100% rename from items/frontend/public/manifest.json rename to items-old/frontend/public/manifest.json diff --git a/items/frontend/public/robots.txt b/items-old/frontend/public/robots.txt similarity index 100% rename from items/frontend/public/robots.txt rename to items-old/frontend/public/robots.txt diff --git a/items/frontend/src/App.tsx b/items-old/frontend/src/App.tsx similarity index 100% rename from items/frontend/src/App.tsx rename to items-old/frontend/src/App.tsx diff --git a/items/frontend/src/components/DarkModeToggle.tsx b/items-old/frontend/src/components/DarkModeToggle.tsx similarity index 100% rename from items/frontend/src/components/DarkModeToggle.tsx rename to items-old/frontend/src/components/DarkModeToggle.tsx diff --git a/items/frontend/src/components/Footer.tsx b/items-old/frontend/src/components/Footer.tsx similarity index 100% rename from items/frontend/src/components/Footer.tsx rename to items-old/frontend/src/components/Footer.tsx diff --git a/items/frontend/src/components/Header.tsx b/items-old/frontend/src/components/Header.tsx similarity index 100% rename from items/frontend/src/components/Header.tsx rename to items-old/frontend/src/components/Header.tsx diff --git a/items/frontend/src/components/HeaderForm.tsx b/items-old/frontend/src/components/HeaderForm.tsx similarity index 100% rename from items/frontend/src/components/HeaderForm.tsx rename to items-old/frontend/src/components/HeaderForm.tsx diff --git a/items/frontend/src/components/JsonTheme.tsx b/items-old/frontend/src/components/JsonTheme.tsx similarity index 100% rename from items/frontend/src/components/JsonTheme.tsx rename to items-old/frontend/src/components/JsonTheme.tsx diff --git a/items/frontend/src/components/LocaleSelect.tsx b/items-old/frontend/src/components/LocaleSelect.tsx similarity index 100% rename from items/frontend/src/components/LocaleSelect.tsx rename to items-old/frontend/src/components/LocaleSelect.tsx diff --git a/items/frontend/src/cypress/fixtures/condensed_milk.json b/items-old/frontend/src/cypress/fixtures/condensed_milk.json similarity index 100% rename from items/frontend/src/cypress/fixtures/condensed_milk.json rename to items-old/frontend/src/cypress/fixtures/condensed_milk.json diff --git a/items/frontend/src/cypress/integration/dark-mode-toggle.spec.tsx b/items-old/frontend/src/cypress/integration/dark-mode-toggle.spec.tsx similarity index 100% rename from items/frontend/src/cypress/integration/dark-mode-toggle.spec.tsx rename to items-old/frontend/src/cypress/integration/dark-mode-toggle.spec.tsx diff --git a/items/frontend/src/cypress/integration/footer.spec.tsx b/items-old/frontend/src/cypress/integration/footer.spec.tsx similarity index 100% rename from items/frontend/src/cypress/integration/footer.spec.tsx rename to items-old/frontend/src/cypress/integration/footer.spec.tsx diff --git a/items/frontend/src/cypress/integration/header.spec.tsx b/items-old/frontend/src/cypress/integration/header.spec.tsx similarity index 100% rename from items/frontend/src/cypress/integration/header.spec.tsx rename to items-old/frontend/src/cypress/integration/header.spec.tsx diff --git a/items/frontend/src/cypress/integration/json-theme.spec.tsx b/items-old/frontend/src/cypress/integration/json-theme.spec.tsx similarity index 100% rename from items/frontend/src/cypress/integration/json-theme.spec.tsx rename to items-old/frontend/src/cypress/integration/json-theme.spec.tsx diff --git a/items/frontend/src/cypress/integration/locale-select.spec.tsx b/items-old/frontend/src/cypress/integration/locale-select.spec.tsx similarity index 100% rename from items/frontend/src/cypress/integration/locale-select.spec.tsx rename to items-old/frontend/src/cypress/integration/locale-select.spec.tsx diff --git a/items/frontend/src/cypress/integration/search.spec.tsx b/items-old/frontend/src/cypress/integration/search.spec.tsx similarity index 100% rename from items/frontend/src/cypress/integration/search.spec.tsx rename to items-old/frontend/src/cypress/integration/search.spec.tsx diff --git a/items/frontend/src/cypress/integration/url-check.spec.tsx b/items-old/frontend/src/cypress/integration/url-check.spec.tsx similarity index 100% rename from items/frontend/src/cypress/integration/url-check.spec.tsx rename to items-old/frontend/src/cypress/integration/url-check.spec.tsx diff --git a/items/frontend/src/cypress/nginx_config/default.conf b/items-old/frontend/src/cypress/nginx_config/default.conf similarity index 100% rename from items/frontend/src/cypress/nginx_config/default.conf rename to items-old/frontend/src/cypress/nginx_config/default.conf diff --git a/items/frontend/src/cypress/plugin/index.js b/items-old/frontend/src/cypress/plugin/index.js similarity index 100% rename from items/frontend/src/cypress/plugin/index.js rename to items-old/frontend/src/cypress/plugin/index.js diff --git a/items/frontend/src/cypress/support/index.js b/items-old/frontend/src/cypress/support/index.js similarity index 100% rename from items/frontend/src/cypress/support/index.js rename to items-old/frontend/src/cypress/support/index.js diff --git a/items/frontend/src/dataaccess/ItemBackend.ts b/items-old/frontend/src/dataaccess/ItemBackend.ts similarity index 100% rename from items/frontend/src/dataaccess/ItemBackend.ts rename to items-old/frontend/src/dataaccess/ItemBackend.ts diff --git a/items/frontend/src/dataaccess/SaveKeys.ts b/items-old/frontend/src/dataaccess/SaveKeys.ts similarity index 100% rename from items/frontend/src/dataaccess/SaveKeys.ts rename to items-old/frontend/src/dataaccess/SaveKeys.ts diff --git a/items/frontend/src/dto/ItemData.ts b/items-old/frontend/src/dto/ItemData.ts similarity index 100% rename from items/frontend/src/dto/ItemData.ts rename to items-old/frontend/src/dto/ItemData.ts diff --git a/items/frontend/src/dto/ItemHierarchy.ts b/items-old/frontend/src/dto/ItemHierarchy.ts similarity index 100% rename from items/frontend/src/dto/ItemHierarchy.ts rename to items-old/frontend/src/dto/ItemHierarchy.ts diff --git a/items/frontend/src/dto/ItemLocale.ts b/items-old/frontend/src/dto/ItemLocale.ts similarity index 100% rename from items/frontend/src/dto/ItemLocale.ts rename to items-old/frontend/src/dto/ItemLocale.ts diff --git a/items/frontend/src/dto/ItemOption.ts b/items-old/frontend/src/dto/ItemOption.ts similarity index 100% rename from items/frontend/src/dto/ItemOption.ts rename to items-old/frontend/src/dto/ItemOption.ts diff --git a/items/frontend/src/dto/ItemWithLocale.ts b/items-old/frontend/src/dto/ItemWithLocale.ts similarity index 100% rename from items/frontend/src/dto/ItemWithLocale.ts rename to items-old/frontend/src/dto/ItemWithLocale.ts diff --git a/items/frontend/src/index.tsx b/items-old/frontend/src/index.tsx similarity index 100% rename from items/frontend/src/index.tsx rename to items-old/frontend/src/index.tsx diff --git a/items/frontend/src/pages/InteractiveArea.tsx b/items-old/frontend/src/pages/InteractiveArea.tsx similarity index 100% rename from items/frontend/src/pages/InteractiveArea.tsx rename to items-old/frontend/src/pages/InteractiveArea.tsx diff --git a/items/frontend/src/pages/MainPage.tsx b/items-old/frontend/src/pages/MainPage.tsx similarity index 100% rename from items/frontend/src/pages/MainPage.tsx rename to items-old/frontend/src/pages/MainPage.tsx diff --git a/items/frontend/src/pages/PageNotFound.tsx b/items-old/frontend/src/pages/PageNotFound.tsx similarity index 100% rename from items/frontend/src/pages/PageNotFound.tsx rename to items-old/frontend/src/pages/PageNotFound.tsx diff --git a/items/frontend/src/pages/mainPageComponents/NavigationBreadcrumb.tsx b/items-old/frontend/src/pages/mainPageComponents/NavigationBreadcrumb.tsx similarity index 100% rename from items/frontend/src/pages/mainPageComponents/NavigationBreadcrumb.tsx rename to items-old/frontend/src/pages/mainPageComponents/NavigationBreadcrumb.tsx diff --git a/items/frontend/src/pages/mainPageComponents/SearchArea.tsx b/items-old/frontend/src/pages/mainPageComponents/SearchArea.tsx similarity index 100% rename from items/frontend/src/pages/mainPageComponents/SearchArea.tsx rename to items-old/frontend/src/pages/mainPageComponents/SearchArea.tsx diff --git a/items/frontend/src/react-app-env.d.ts b/items-old/frontend/src/react-app-env.d.ts similarity index 100% rename from items/frontend/src/react-app-env.d.ts rename to items-old/frontend/src/react-app-env.d.ts diff --git a/items/frontend/src/reportWebVitals.ts b/items-old/frontend/src/reportWebVitals.ts similarity index 100% rename from items/frontend/src/reportWebVitals.ts rename to items-old/frontend/src/reportWebVitals.ts diff --git a/items/frontend/src/setupTests.ts b/items-old/frontend/src/setupTests.ts similarity index 100% rename from items/frontend/src/setupTests.ts rename to items-old/frontend/src/setupTests.ts diff --git a/items/frontend/src/state/GlobalState.ts b/items-old/frontend/src/state/GlobalState.ts similarity index 100% rename from items/frontend/src/state/GlobalState.ts rename to items-old/frontend/src/state/GlobalState.ts diff --git a/items/frontend/src/state/ReactJsonViewThemes.ts b/items-old/frontend/src/state/ReactJsonViewThemes.ts similarity index 100% rename from items/frontend/src/state/ReactJsonViewThemes.ts rename to items-old/frontend/src/state/ReactJsonViewThemes.ts diff --git a/items/frontend/src/state/ThemeMode.ts b/items-old/frontend/src/state/ThemeMode.ts similarity index 100% rename from items/frontend/src/state/ThemeMode.ts rename to items-old/frontend/src/state/ThemeMode.ts diff --git a/items/frontend/src/theme/Theme.ts b/items-old/frontend/src/theme/Theme.ts similarity index 100% rename from items/frontend/src/theme/Theme.ts rename to items-old/frontend/src/theme/Theme.ts diff --git a/items/frontend/src/theme/darkTheme.ts b/items-old/frontend/src/theme/darkTheme.ts similarity index 100% rename from items/frontend/src/theme/darkTheme.ts rename to items-old/frontend/src/theme/darkTheme.ts diff --git a/items/frontend/src/theme/lightTheme.ts b/items-old/frontend/src/theme/lightTheme.ts similarity index 100% rename from items/frontend/src/theme/lightTheme.ts rename to items-old/frontend/src/theme/lightTheme.ts diff --git a/items/frontend/tsconfig.json b/items-old/frontend/tsconfig.json similarity index 100% rename from items/frontend/tsconfig.json rename to items-old/frontend/tsconfig.json diff --git a/items/frontend/yarn.lock b/items-old/frontend/yarn.lock similarity index 100% rename from items/frontend/yarn.lock rename to items-old/frontend/yarn.lock -- 2.47.1 From c57646cf7b1cf75078350cd73098940ecf480a3a Mon Sep 17 00:00:00 2001 From: Mangiang Date: Sat, 18 Dec 2021 22:34:07 -0500 Subject: [PATCH 2/6] feat: Fix layout --- db | 1 - db/.editorconfig | 11 + db/.eslintrc.js | 3 + db/.gitignore | 53 + db/.npmrc | 7 + db/.prettierignore | 10 + db/README.md | 116 + db/app/core/components/DarkModeToggle.tsx | 59 + db/app/core/components/Footer.tsx | 23 + db/app/core/components/Header.tsx | 86 + db/app/core/components/HeaderForm.tsx | 29 + db/app/core/components/JsonTheme.tsx | 69 + db/app/core/components/LocaleSelect.tsx | 54 + db/app/core/dto/ItemData.ts | 6 + db/app/core/dto/ItemHierarchy.ts | 5 + db/app/core/dto/ItemLocale.ts | 5 + db/app/core/dto/ItemOption.ts | 5 + db/app/core/dto/ItemWithLocale.ts | 7 + db/app/core/dto/SaveKeys.ts | 10 + db/app/core/layouts/Layout.tsx | 33 + db/app/core/state/GlobalState.ts | 122 + db/app/core/state/ReactJsonViewThemes.ts | 40 + db/app/core/state/ThemeMode.ts | 4 + db/app/core/theme/Theme.ts | 66 + db/app/core/theme/darkTheme.ts | 19 + db/app/core/theme/lightTheme.ts | 19 + db/app/pages/404.tsx | 48 + db/app/pages/_app.tsx | 78 + db/app/pages/_document.tsx | 50 + db/app/pages/index.test.tsx | 13 + db/app/pages/index.tsx | 228 + db/babel.config.js | 4 + db/blitz-env.d.ts | 6 + db/blitz.config.ts | 13 + db/jest.config.ts | 7 + db/package.json | 42 + db/public/favicon.ico | Bin 0 -> 2259 bytes db/public/logo.png | Bin 0 -> 33469 bytes db/test/setup.ts | 4 + db/test/utils.tsx | 105 + db/tsconfig.json | 24 + db/types.ts | 5 + db/yarn.lock | 9739 +++++++++++++++++++++ 43 files changed, 11227 insertions(+), 1 deletion(-) delete mode 160000 db create mode 100644 db/.editorconfig create mode 100644 db/.eslintrc.js create mode 100644 db/.gitignore create mode 100644 db/.npmrc create mode 100644 db/.prettierignore create mode 100644 db/README.md create mode 100644 db/app/core/components/DarkModeToggle.tsx create mode 100644 db/app/core/components/Footer.tsx create mode 100644 db/app/core/components/Header.tsx create mode 100644 db/app/core/components/HeaderForm.tsx create mode 100644 db/app/core/components/JsonTheme.tsx create mode 100644 db/app/core/components/LocaleSelect.tsx create mode 100644 db/app/core/dto/ItemData.ts create mode 100644 db/app/core/dto/ItemHierarchy.ts create mode 100644 db/app/core/dto/ItemLocale.ts create mode 100644 db/app/core/dto/ItemOption.ts create mode 100644 db/app/core/dto/ItemWithLocale.ts create mode 100644 db/app/core/dto/SaveKeys.ts create mode 100644 db/app/core/layouts/Layout.tsx create mode 100644 db/app/core/state/GlobalState.ts create mode 100644 db/app/core/state/ReactJsonViewThemes.ts create mode 100644 db/app/core/state/ThemeMode.ts create mode 100644 db/app/core/theme/Theme.ts create mode 100644 db/app/core/theme/darkTheme.ts create mode 100644 db/app/core/theme/lightTheme.ts create mode 100644 db/app/pages/404.tsx create mode 100644 db/app/pages/_app.tsx create mode 100644 db/app/pages/_document.tsx create mode 100644 db/app/pages/index.test.tsx create mode 100644 db/app/pages/index.tsx create mode 100644 db/babel.config.js create mode 100644 db/blitz-env.d.ts create mode 100644 db/blitz.config.ts create mode 100644 db/jest.config.ts create mode 100644 db/package.json create mode 100644 db/public/favicon.ico create mode 100644 db/public/logo.png create mode 100644 db/test/setup.ts create mode 100644 db/test/utils.tsx create mode 100644 db/tsconfig.json create mode 100644 db/types.ts create mode 100644 db/yarn.lock diff --git a/db b/db deleted file mode 160000 index 9e1c6c9..0000000 --- a/db +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9e1c6c96da221f7c5434816aaa3c933d1622cb16 diff --git a/db/.editorconfig b/db/.editorconfig new file mode 100644 index 0000000..09d7a33 --- /dev/null +++ b/db/.editorconfig @@ -0,0 +1,11 @@ +# https://EditorConfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true diff --git a/db/.eslintrc.js b/db/.eslintrc.js new file mode 100644 index 0000000..f845b10 --- /dev/null +++ b/db/.eslintrc.js @@ -0,0 +1,3 @@ +module.exports = { + extends: ["blitz"], +} diff --git a/db/.gitignore b/db/.gitignore new file mode 100644 index 0000000..f6fda81 --- /dev/null +++ b/db/.gitignore @@ -0,0 +1,53 @@ +# dependencies +node_modules +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.pnp.* +.npm +web_modules/ + +# blitz +/.blitz/ +/.next/ +*.sqlite +*.sqlite-journal +.now +.blitz** +blitz-log.log + +# misc +.DS_Store + +# local env files +.env.local +.env.*.local +.envrc + +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Testing +.coverage +*.lcov +.nyc_output +lib-cov + +# Caches +*.tsbuildinfo +.eslintcache +.node_repl_history +.yarn-integrity + +# Serverless directories +.serverless/ + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test diff --git a/db/.npmrc b/db/.npmrc new file mode 100644 index 0000000..f7777f0 --- /dev/null +++ b/db/.npmrc @@ -0,0 +1,7 @@ +save-exact=true +legacy-peer-deps=true + +public-hoist-pattern[]=next +public-hoist-pattern[]=secure-password +public-hoist-pattern[]=*jest* +public-hoist-pattern[]=@testing-library/* diff --git a/db/.prettierignore b/db/.prettierignore new file mode 100644 index 0000000..ae16525 --- /dev/null +++ b/db/.prettierignore @@ -0,0 +1,10 @@ +.gitkeep +.env* +*.ico +*.lock +.next +.blitz +.yarn +.pnp.* +node_modules +.blitz.config.compiled.js diff --git a/db/README.md b/db/README.md new file mode 100644 index 0000000..6f38190 --- /dev/null +++ b/db/README.md @@ -0,0 +1,116 @@ +[![Blitz.js](https://raw.githubusercontent.com/blitz-js/art/master/github-cover-photo.png)](https://blitzjs.com) + +This is a minimal [Blitz.js](https://github.com/blitz-js/blitz) app. + +# **db** + +## Getting Started + +Run your app in the development mode. + +``` +blitz dev +``` + +Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. + +## Tests + +Runs your tests using Jest. + +``` +yarn test +``` + +Blitz comes with a test setup using [Jest](https://jestjs.io/) and [react-testing-library](https://testing-library.com/). + +## Commands + +Blitz comes with a powerful CLI that is designed to make development easy and fast. You can install it with `npm i -g blitz` + +``` + blitz [COMMAND] + + dev Start a development server + build Create a production build + start Start a production server + export Export your Blitz app as a static application + prisma Run prisma commands + generate Generate new files for your Blitz project + console Run the Blitz console REPL + install Install a recipe + help Display help for blitz + test Run project tests +``` + +You can read more about it on the [CLI Overview](https://blitzjs.com/docs/cli-overview) documentation. + +## What's included? + +Here is the starting structure of your app. + +``` +db +├── app/ +│ ├── pages/ +│ │ ├── _app.tsx +│ │ ├── _document.tsx +│ │ ├── 404.tsx +│ │ ├── index.test.tsx +│ │ └── index.tsx +├── public/ +│ ├── favicon.ico +│ └── logo.png +├── test/ +│ ├── setup.ts +│ └── utils.tsx +├── .eslintrc.js +├── babel.config.js +├── blitz.config.ts +├── jest.config.ts +├── package.json +├── README.md +├── tsconfig.json +└── types.ts +``` + +These files are: + +- The `app/` folder is a container for most of your project. This is where you’ll put any pages or API routes. + +- `public/` is a folder where you will put any static assets. If you have images, files, or videos which you want to use in your app, this is where to put them. + +- `test/` is a folder where you can put test utilities and integration tests. + +- `package.json` contains information about your dependencies and devDependencies. If you’re using a tool like `npm` or `yarn`, you won’t have to worry about this much. + +- `tsconfig.json` is our recommended setup for TypeScript. + +- `.babel.config.js`, `.eslintrc.js`, `.env`, etc. ("dotfiles") are configuration files for various bits of JavaScript tooling. + +- `blitz.config.ts` is for advanced custom configuration of Blitz. [Here you can learn how to use it](https://blitzjs.com/docs/blitz-config). + +- `jest.config.js` contains config for Jest tests. You can [customize it if needed](https://jestjs.io/docs/en/configuration). + +You can read more about it in the [File Structure](https://blitzjs.com/docs/file-structure) section of the documentation. + +### Tools included + +Blitz comes with a set of tools that corrects and formats your code, facilitating its future maintenance. You can modify their options and even uninstall them. + +- **ESLint**: It lints your code: searches for bad practices and tell you about it. You can customize it via the `.eslintrc.js`, and you can install (or even write) plugins to have it the way you like it. It already comes with the [`blitz`](https://github.com/blitz-js/blitz/tree/canary/packages/eslint-config) config, but you can remove it safely. [Learn More](https://blitzjs.com/docs/eslint-config). +- **Husky**: It adds [githooks](https://git-scm.com/docs/githooks), little pieces of code that get executed when certain Git events are triggerd. For example, `pre-commit` is triggered just before a commit is created. You can see the current hooks inside `.husky/`. If are having problems commiting and pushing, check out ther [troubleshooting](https://typicode.github.io/husky/#/?id=troubleshoot) guide. [Learn More](https://blitzjs.com/docs/husky-config). +- **Prettier**: It formats your code to look the same everywhere. You can configure it via the `.prettierrc` file. The `.prettierignore` contains the files that should be ignored by Prettier; useful when you have large files or when you want to keep a custom formatting. [Learn More](https://blitzjs.com/docs/prettier-config). + +## Learn more + +Read the [Blitz.js Documentation](https://blitzjs.com/docs/getting-started) to learn more. + +The Blitz community is warm, safe, diverse, inclusive, and fun! Feel free to reach out to us in any of our communication channels. + +- [Website](https://blitzjs.com) +- [Discord](https://blitzjs.com/discord) +- [Report an issue](https://github.com/blitz-js/blitz/issues/new/choose) +- [Forum discussions](https://github.com/blitz-js/blitz/discussions) +- [How to Contribute](https://blitzjs.com/docs/contributing) +- [Sponsor or donate](https://github.com/blitz-js/blitz#sponsors-and-donations) diff --git a/db/app/core/components/DarkModeToggle.tsx b/db/app/core/components/DarkModeToggle.tsx new file mode 100644 index 0000000..f6de396 --- /dev/null +++ b/db/app/core/components/DarkModeToggle.tsx @@ -0,0 +1,59 @@ +import { Box, IconButton, Theme } from '@mui/material' +import { useTheme } from '@mui/material/styles' +import Brightness4Icon from '@mui/icons-material/Brightness4' +import Brightness7Icon from '@mui/icons-material/Brightness7' +import { ThemeMode } from '../state/ThemeMode' +import { useGlobalState } from '../state/GlobalState' +import { useCallback } from 'react' +import { makeStyles } from '@mui/styles' + +const useStyles = makeStyles((theme: Theme) => ({ + modeToggleButtonHolder: { + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + color: 'primary', + flexGrow: 1, + }, + iconButton: { + ml: 1, + }, +})) + +export const DarkModeToggle = () => { + const theme = useTheme() + const classes = useStyles() + const [preferedColorScheme, setPreferedColorScheme] = useGlobalState( + useCallback( + (state) => [state.preferedColorScheme, state.setPreferedColorScheme], + [], + ), + ) + + const toggleColor = () => { + const newTheme = + preferedColorScheme === ThemeMode.LIGHT_MODE + ? ThemeMode.DARK_MODE + : ThemeMode.LIGHT_MODE + setPreferedColorScheme(newTheme) + } + + return ( + + {theme.palette.mode} mode + + {theme.palette.mode === 'dark' ? ( + + ) : ( + + )} + + + ) +} diff --git a/db/app/core/components/Footer.tsx b/db/app/core/components/Footer.tsx new file mode 100644 index 0000000..e2f7541 --- /dev/null +++ b/db/app/core/components/Footer.tsx @@ -0,0 +1,23 @@ +import {Box, Typography} from '@mui/material' +import {makeStyles} from '@mui/styles' + +const useStyles = makeStyles(() => ({ + footerHolder: { + display: 'flex', + flex: '0 1 3vh', + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'center', + padding: '0 10vw 0 10vw' + } +})) + +export const Footer = () => { + const classes = useStyles() + + return ( + + SPT-Aki ©2021 Created by Rev and Shirito + + ) +} diff --git a/db/app/core/components/Header.tsx b/db/app/core/components/Header.tsx new file mode 100644 index 0000000..2296d4f --- /dev/null +++ b/db/app/core/components/Header.tsx @@ -0,0 +1,86 @@ +import { Box, Link, Theme } from '@mui/material' +import { makeStyles } from '@mui/styles' +import { useCallback } from 'react'; +import { useGlobalState } from '../state/GlobalState'; +import { HeaderForm } from './HeaderForm'; + +const useStyles = makeStyles((theme: Theme) => ({ + headerContainer: { + display: 'flex', + flex: '0 1 3vh', + flexDirection: 'row', + backgroundColor: theme.palette.background.paper, + alignItems: 'center', + padding: '0 10vw 0 10vw', + }, + linksContainer: { + display: 'flex', + flexGrow: 2, + flexDirection: 'row', + alignItems: 'center', + height: '100%', + }, + formContainer: { + display: 'flex', + flexGrow: 1, + flexDirection: 'row', + alignItems: 'center', + height: '100%', + }, + link: { + display: 'flex', + padding: '0 1vw 0 1vw', + height: '100%', + alignItems: 'center', + borderBottom: `1px solid transparent`, + '&:hover': { + borderBottom: `1px solid ${theme.palette.action.hover}`, + }, + }, +})) + +export const Header = () => { + const classes = useStyles() + const websiteLink = useGlobalState(useCallback((state) => state.sptarkovWebsiteUrl,[])) + const workshopLink = useGlobalState(useCallback((state) => state.sptarkovWorkshopUrl,[])) + const documentationLink = useGlobalState(useCallback((state) => state.sptarkovDocumentationUrl,[])) + + return ( + <> + + + + Website + + + Workshop + + + Documentation + + + + + + + + ) +} diff --git a/db/app/core/components/HeaderForm.tsx b/db/app/core/components/HeaderForm.tsx new file mode 100644 index 0000000..41e6388 --- /dev/null +++ b/db/app/core/components/HeaderForm.tsx @@ -0,0 +1,29 @@ +import { DarkModeToggle } from './DarkModeToggle' +import { LocaleSelect } from './LocaleSelect' +import { JsonTheme } from './JsonTheme' +import { Theme } from '@mui/material' +import { makeStyles } from '@mui/styles'; + +const useStyles = makeStyles((theme: Theme) => ({ + form: { + display: 'flex', + flexDirection: 'row', + flexGrow: 1, + justifyContent: 'flex-end', + height: '100%' + }, +})); + +export const HeaderForm = () => { + const classes = useStyles(); + + return ( + <> +
+ + + + + + ) +} diff --git a/db/app/core/components/JsonTheme.tsx b/db/app/core/components/JsonTheme.tsx new file mode 100644 index 0000000..f6b4529 --- /dev/null +++ b/db/app/core/components/JsonTheme.tsx @@ -0,0 +1,69 @@ +import { + Box, + FormControl, + MenuItem, + Select, + Theme, +} from '@mui/material' +import { makeStyles } from '@mui/styles' +import { ReactJsonViewThemes } from '../state/ReactJsonViewThemes' +import { LocalStorageKeys } from '../dto/SaveKeys' +import { useGlobalState } from '../state/GlobalState' +import { useCallback } from 'react' + +const useStyles = makeStyles((theme: Theme) => ({ + jsonHolder: { + display: 'flex', + flexGrow: 1, + padding: '0 0.5vw 0 0.5vw' + }, + select: { + display: 'flex', + flexGrow: 1 + } +})) + +export const JsonTheme = () => { + const classes = useStyles() + const [preferedJsonViewerTheme, setPreferedJsonViewerTheme] = useGlobalState( + useCallback( + (state) => [ + state.preferedJsonViewerTheme, + state.setPreferedJsonViewerTheme, + ], + [], + ), + ) + return ( + <> + + + + + + + ) +} diff --git a/db/app/core/components/LocaleSelect.tsx b/db/app/core/components/LocaleSelect.tsx new file mode 100644 index 0000000..5de8bd4 --- /dev/null +++ b/db/app/core/components/LocaleSelect.tsx @@ -0,0 +1,54 @@ +import { Select, MenuItem, Theme, Box, FormControl } from '@mui/material' +import {makeStyles} from '@mui/styles' +import { useCallback, useEffect } from 'react'; +import { useGlobalState } from '../state/GlobalState' + +const useStyles = makeStyles((theme: Theme) => ({ + localeHolder: { + display: 'flex', + flexGrow: 1, + padding: '0 0.5vw 0 0.5vw' + }, + select: { + display: 'flex', + flexGrow: 1 + } +})) + + + +export const LocaleSelect = () => { + const classes = useStyles() + const [preferedLocale, setPreferedLocale] = useGlobalState(useCallback(state => [state.preferedLocale, state.setPreferedLocale],[])) + const [localesList, refreshLocalesList] = useGlobalState(useCallback(state => [state.localesList, state.refreshLocalesList],[])) + + useEffect(()=> {refreshLocalesList();}, [refreshLocalesList]) + + return ( + <> + + + + + + + ) +} diff --git a/db/app/core/dto/ItemData.ts b/db/app/core/dto/ItemData.ts new file mode 100644 index 0000000..b8f7ce9 --- /dev/null +++ b/db/app/core/dto/ItemData.ts @@ -0,0 +1,6 @@ +export interface ItemData { + _id: string + _name: string + _parent?: string + _type?: string +} \ No newline at end of file diff --git a/db/app/core/dto/ItemHierarchy.ts b/db/app/core/dto/ItemHierarchy.ts new file mode 100644 index 0000000..e51d10a --- /dev/null +++ b/db/app/core/dto/ItemHierarchy.ts @@ -0,0 +1,5 @@ +import { ItemWithLocale } from './ItemWithLocale'; + +export interface ItemHierarchy { + [id: string]: ItemWithLocale +} \ No newline at end of file diff --git a/db/app/core/dto/ItemLocale.ts b/db/app/core/dto/ItemLocale.ts new file mode 100644 index 0000000..2bdbc62 --- /dev/null +++ b/db/app/core/dto/ItemLocale.ts @@ -0,0 +1,5 @@ +export interface ItemLocale { + Description: string + Name: string + ShortName: string +} \ No newline at end of file diff --git a/db/app/core/dto/ItemOption.ts b/db/app/core/dto/ItemOption.ts new file mode 100644 index 0000000..9d67b54 --- /dev/null +++ b/db/app/core/dto/ItemOption.ts @@ -0,0 +1,5 @@ +export interface ItemOption { + id: string + name: string + shortName?: string +} \ No newline at end of file diff --git a/db/app/core/dto/ItemWithLocale.ts b/db/app/core/dto/ItemWithLocale.ts new file mode 100644 index 0000000..d0de32b --- /dev/null +++ b/db/app/core/dto/ItemWithLocale.ts @@ -0,0 +1,7 @@ +import { ItemData } from './ItemData'; +import { ItemLocale } from './ItemLocale'; + +export interface ItemWithLocale { + item: ItemData + locale: ItemLocale +} \ No newline at end of file diff --git a/db/app/core/dto/SaveKeys.ts b/db/app/core/dto/SaveKeys.ts new file mode 100644 index 0000000..2063df2 --- /dev/null +++ b/db/app/core/dto/SaveKeys.ts @@ -0,0 +1,10 @@ +export enum LocalStorageKeys { + PREFERED_COLOR_SCHEME = 'db.sp-tarkov.com-prefered-color-scheme', + PREFERED_JSON_THEME = 'db.sp-tarkov.com-prefered-json-theme', + PREFERED_LOCALE = 'db.sp-tarkov.com-prefered-locale' +} + +export enum SessionStorageKeys { + LOCALES = 'db.sp-tarkov.com-locales', + ITEMS_HIERARCHY = 'db.sp-tarkov.com-items-hierarchy', +} \ No newline at end of file diff --git a/db/app/core/layouts/Layout.tsx b/db/app/core/layouts/Layout.tsx new file mode 100644 index 0000000..3af0c0c --- /dev/null +++ b/db/app/core/layouts/Layout.tsx @@ -0,0 +1,33 @@ +import {Box} from '@mui/material' +import {Footer} from '../components/Footer' +import {Header} from '../components/Header' +import {makeStyles} from "@mui/styles"; +import React, { PropsWithChildren } from "react"; +// import {InteractiveArea} from "./InteractiveArea"; +// import {PageNotFound} from "./PageNotFound"; + +const useStyles = makeStyles(() => ({ + container: { + background: 'background.default', + display: 'flex', + flexDirection: 'column', + flexGrow: 1, + height: '100vh', + maxheight: '100vh', + } +})) + +interface Props {} + +export const Layout = (props: PropsWithChildren) => { + const classes = useStyles(); + return ( + <> + +
+ {props.children} +