Forráskód Böngészése

added redux devtools plugin

tigger 1 éve
szülő
commit
2d35f6e2b2
4 módosított fájl, 7 hozzáadás és 7 törlés
  1. 2 2
      angular.json
  2. 1 0
      package.json
  3. 3 4
      src/app/app.config.ts
  4. 1 1
      src/dependencies/angularlib

+ 2 - 2
angular.json

@@ -60,8 +60,8 @@
               "sourceMap": true,
               "fileReplacements": [
                 {
-                  "replace": "src/dependencies/dp-ui/dp.comm.ts",
-                  "with":"src/dependencies/dp-ui/dp.comm.test.ts"
+                  "replace": "src/dependencies/dp-ui/socket/ngxSocket.service.ts",
+                  "with":"src/dependencies/dp-ui/socket/ngxSocket.service.test.ts"
                 }
               ]
             }

+ 1 - 0
package.json

@@ -21,6 +21,7 @@
     "@angular/platform-browser": "^18.2.2",
     "@angular/platform-browser-dynamic": "^18.2.2",
     "@angular/router": "^18.2.2",
+    "@ngxs/devtools-plugin": "^18.1.1",
     "@ngxs/storage-plugin": "^18.1.1",
     "@ngxs/store": "^18.1.1",
     "angularlib": "file:./src/dependencies/angularlib",

+ 3 - 4
src/app/app.config.ts

@@ -5,16 +5,15 @@ import { provideHttpClient } from '@angular/common/http';
 import { BrowserModule } from '@angular/platform-browser';
 import { DpModule } from 'dp-ui/dp.module';
 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
-import { NgxsStoragePluginModule } from '@ngxs/storage-plugin';
 import { Angularlib } from 'angularlib/angularlib.module';
-import { NgxsModule } from '@ngxs/store';
+import { provideStore } from '@ngxs/store';
+import { withNgxsReduxDevtoolsPlugin } from '@ngxs/devtools-plugin';
 
 export const appConfig: ApplicationConfig = {
   providers: [
     importProvidersFrom(BrowserModule),
     importProvidersFrom(BrowserAnimationsModule),
-    importProvidersFrom(NgxsStoragePluginModule.forRoot({keys:'*'})),
-    importProvidersFrom(NgxsModule.forRoot()),
+    provideStore([],withNgxsReduxDevtoolsPlugin()),
     importProvidersFrom(DpModule),
     importProvidersFrom(Angularlib),
     provideRouter(routes,withHashLocation()),

+ 1 - 1
src/dependencies/angularlib

@@ -1 +1 @@
-Subproject commit e2027e8ccef94ea638b9da4cb6e911241a1aa30d
+Subproject commit 8d7a8639b81889fba2ec67939f6b63df9f7dec38