Skip to content

Commit

Permalink
Add styling example
Browse files Browse the repository at this point in the history
  • Loading branch information
vin0401 committed Jan 24, 2024
1 parent f8c3ee6 commit 2a89682
Show file tree
Hide file tree
Showing 24 changed files with 3,654 additions and 90 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
"ignorePatterns": ['test.ts'],
"env": {
"browser": true,
"es2021": true
Expand Down
2 changes: 1 addition & 1 deletion assets/js/app/api/pimcore/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'

export const api = createApi({
baseQuery: fetchBaseQuery({ baseUrl: '/' }),
baseQuery: fetchBaseQuery({ baseUrl: '/admin/' }),
endpoints: () => ({})
})
5 changes: 4 additions & 1 deletion assets/js/app/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ const slices: AnySliceLike[] = [
export let rootReducer = combineSlices({}, ...slices).withLazyLoadedSlices<LazyloadedSlices>()

export const store = configureStore({
reducer: rootReducer
reducer: rootReducer,

middleware: (getDefaultMiddleware) =>
getDefaultMiddleware().concat(pimcoreApi.middleware)
})

export const injectSliceWithState = (newSlice: AnySliceLike): CombinedSliceReducer<Record<string, any>, Record<string, any>> => {
Expand Down
Loading

0 comments on commit 2a89682

Please sign in to comment.