-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b825093
commit c34503f
Showing
40 changed files
with
292 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
packages/starter/templates/backbone/csr/src/components/image/styles.module.scss.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
declare namespace StyleModulesScssNamespace { | ||
export interface IStyleModulesScss { | ||
declare namespace StylesModuleScssNamespace { | ||
export interface IStylesModuleScss { | ||
img: string; | ||
} | ||
} | ||
|
||
declare const StyleModulesScssModule: StyleModulesScssNamespace.IStyleModulesScss & { | ||
declare const StylesModuleScssModule: StylesModuleScssNamespace.IStylesModuleScss & { | ||
/** WARNING: Only available when `css-loader` is used without `style-loader` or `mini-css-extract-plugin` */ | ||
locals: StyleModulesScssNamespace.IStyleModulesScss; | ||
locals: StylesModuleScssNamespace.IStylesModuleScss; | ||
}; | ||
|
||
export = StyleModulesScssModule; | ||
export = StylesModuleScssModule; |
29 changes: 0 additions & 29 deletions
29
packages/starter/templates/backbone/csr/src/components/router/index.tsx
This file was deleted.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
...r/templates/backbone/csr/src/features/image/components/image-area/styles.module.scss.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
declare namespace StyleModulesScssNamespace { | ||
export interface IStyleModulesScss { | ||
'image-holder': string; | ||
declare namespace StylesModuleScssNamespace { | ||
export interface IStylesModuleScss { | ||
"image-holder": string; | ||
} | ||
} | ||
|
||
declare const StyleModulesScssModule: StyleModulesScssNamespace.IStyleModulesScss & { | ||
declare const StylesModuleScssModule: StylesModuleScssNamespace.IStylesModuleScss & { | ||
/** WARNING: Only available when `css-loader` is used without `style-loader` or `mini-css-extract-plugin` */ | ||
locals: StyleModulesScssNamespace.IStyleModulesScss; | ||
locals: StylesModuleScssNamespace.IStylesModuleScss; | ||
}; | ||
|
||
export = StyleModulesScssModule; | ||
export = StylesModuleScssModule; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions
12
.../templates/backbone/csr/src/pages/main-page/components/navigation/styles.module.scss.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
declare namespace StyleModulesScssNamespace { | ||
export interface IStyleModulesScss { | ||
'nav-holder': string; | ||
declare namespace StylesModuleScssNamespace { | ||
export interface IStylesModuleScss { | ||
"nav-holder": string; | ||
} | ||
} | ||
|
||
declare const StyleModulesScssModule: StyleModulesScssNamespace.IStyleModulesScss & { | ||
declare const StylesModuleScssModule: StylesModuleScssNamespace.IStylesModuleScss & { | ||
/** WARNING: Only available when `css-loader` is used without `style-loader` or `mini-css-extract-plugin` */ | ||
locals: StyleModulesScssNamespace.IStyleModulesScss; | ||
locals: StylesModuleScssNamespace.IStylesModuleScss; | ||
}; | ||
|
||
export = StyleModulesScssModule; | ||
export = StylesModuleScssModule; |
7 changes: 5 additions & 2 deletions
7
packages/starter/templates/backbone/csr/src/pages/main-page/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import { ReactElement } from 'react'; | ||
import { Outlet } from 'react-router'; | ||
|
||
import { Navigation } from './components/navigation'; | ||
import styles from './styles.module.scss'; | ||
|
||
export const MainPage = ({ children }: { children: ReactElement }): ReactElement => ( | ||
export const MainPage = (): ReactElement => ( | ||
<div> | ||
<Navigation /> | ||
<div className={styles.wrapper}>{children}</div> | ||
<div className={styles.wrapper}> | ||
<Outlet /> | ||
</div> | ||
</div> | ||
); |
10 changes: 5 additions & 5 deletions
10
packages/starter/templates/backbone/csr/src/pages/main-page/styles.module.scss.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
declare namespace StyleModulesScssNamespace { | ||
export interface IStyleModulesScss { | ||
declare namespace StylesModuleScssNamespace { | ||
export interface IStylesModuleScss { | ||
wrapper: string; | ||
} | ||
} | ||
|
||
declare const StyleModulesScssModule: StyleModulesScssNamespace.IStyleModulesScss & { | ||
declare const StylesModuleScssModule: StylesModuleScssNamespace.IStylesModuleScss & { | ||
/** WARNING: Only available when `css-loader` is used without `style-loader` or `mini-css-extract-plugin` */ | ||
locals: StyleModulesScssNamespace.IStyleModulesScss; | ||
locals: StylesModuleScssNamespace.IStylesModuleScss; | ||
}; | ||
|
||
export = StyleModulesScssModule; | ||
export = StylesModuleScssModule; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { lazy, Suspense } from 'react'; | ||
import { Navigate } from 'react-router-dom'; | ||
|
||
import './assets/styles/global.scss'; | ||
import { MainPage } from './pages/main-page'; | ||
|
||
const Home = lazy(() => import('./pages/home/home.lazy')); | ||
const Image = lazy(() => import('./pages/image/image.lazy')); | ||
|
||
export const routes = [ | ||
{ | ||
children: [ | ||
{ | ||
element: ( | ||
<Suspense fallback={<div>Loading</div>}> | ||
<Home /> | ||
</Suspense> | ||
), | ||
path: '/', | ||
}, | ||
{ | ||
element: ( | ||
<Suspense fallback={<div>Loading</div>}> | ||
<Image /> | ||
</Suspense> | ||
), | ||
path: '/image', | ||
}, | ||
{ | ||
element: <Navigate to="/" />, | ||
path: '*', | ||
}, | ||
], | ||
element: <MainPage />, | ||
path: '/', | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.