File tree Expand file tree Collapse file tree 7 files changed +77
-0
lines changed
Expand file tree Collapse file tree 7 files changed +77
-0
lines changed Original file line number Diff line number Diff line change 1+ header :
2+ license :
3+ spdx-id : MPL-2.0
4+ pattern : |
5+ Copyright copyright \d{4}, RTE \(http:\/\/www\.rte-france\.com\)
6+ This Source Code Form is subject to the terms of the Mozilla Public
7+ License, v\. 2\.0\. If a copy of the MPL was not distributed with this
8+ file, You can obtain one at http:\/\/mozilla\.org\/MPL\/2\.0\/\.
9+
10+ paths-ignore :
11+ - ' dist'
12+ - ' licenses'
13+ - ' **/*.md'
14+ - ' LICENSE'
15+ - ' NOTICE'
16+ - ' Dockerfile'
17+ - ' **/.*'
18+ - ' **/*.txt'
19+ - ' **/*.json'
20+ - ' **/*.yaml'
21+ - ' **/*.yml'
22+ - ' **/*.svg'
23+ - ' **/*.css'
24+ - ' **/*.conf'
25+ - ' **/*.properties'
26+
27+ comment : on-failure
Original file line number Diff line number Diff line change 77 pull_request :
88
99jobs :
10+ license-headers :
11+ name : Check licenses headers
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/setup-node@v3
16+ - name : Checkout sources
17+ uses : actions/checkout@v2
18+ with :
19+ persist-credentials : false
20+
21+ - name : Check License Header (Check Mode)
22+ uses :
apache/skywalking-eyes/[email protected] 23+ with :
24+ config : .github/config/.licenserc.yaml
25+
1026 build-and-deploy :
1127 runs-on : ubuntu-latest
1228
2440 - name : Install and Build
2541 run : |
2642 npm install
43+ npm run licenses-check
2744 npm run lint
2845 npm run test:coverage
2946 npm run build
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2024, RTE (http://www.rte-france.com)
3+ * This Source Code Form is subject to the terms of the Mozilla Public
4+ * License, v. 2.0. If a copy of the MPL was not distributed with this
5+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+ */
17// app.test.tsx
28
39import React , { FunctionComponent , PropsWithChildren } from 'react' ;
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2024, RTE (http://www.rte-france.com)
3+ * This Source Code Form is subject to the terms of the Mozilla Public
4+ * License, v. 2.0. If a copy of the MPL was not distributed with this
5+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+ */
17// https://github.com/emotion-js/emotion/discussions/2291
28// https://emotion.sh/docs/typescript#define-a-theme
39
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2024, RTE (http://www.rte-france.com)
3+ * This Source Code Form is subject to the terms of the Mozilla Public
4+ * License, v. 2.0. If a copy of the MPL was not distributed with this
5+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+ */
17// https://mui.com/material-ui/customization/theming/#typescript
28import { CSSObject } from '@mui/styled-engine' ;
39import { Theme as MuiTheme , ThemeOptions as MuiThemeOptions } from '@mui/material/styles/createTheme' ;
@@ -15,7 +21,9 @@ declare module '@mui/material/styles/createTheme' {
1521 agGridTheme : 'ag-theme-alpine' | 'ag-theme-alpine-dark' ;
1622 agGridThemeOverride ?: CSSObject ;
1723 } ;
24+
1825 export interface Theme extends MuiTheme , ThemeExtension { }
26+
1927 // allow configuration using `createTheme`
2028 export interface ThemeOptions extends MuiThemeOptions , Partial < ThemeExtension > { }
2129}
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2024, RTE (http://www.rte-france.com)
3+ * This Source Code Form is subject to the terms of the Mozilla Public
4+ * License, v. 2.0. If a copy of the MPL was not distributed with this
5+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+ */
7+
18export * as ConfigSrv from './config' ;
29export type * from './config' ;
310
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2024, RTE (http://www.rte-france.com)
3+ * This Source Code Form is subject to the terms of the Mozilla Public
4+ * License, v. 2.0. If a copy of the MPL was not distributed with this
5+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+ */
17// from https://github.com/ag-grid/ag-grid/blob/latest/documentation/ag-grid-docs/src/content/docs/localisation/_examples/localisation/locale.en.js
28/* eslint-disable no-template-curly-in-string */
39
You can’t perform that action at this time.
0 commit comments