Skip to content

Commit

Permalink
merge and add support for dev deployment branch changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yileifeng committed Jun 20, 2024
1 parent 9253d69 commit dd0cde7
Show file tree
Hide file tree
Showing 23 changed files with 6,194 additions and 36,369 deletions.
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VUE_APP_API_URL=#{API_URL}#
VUE_APP_CURR_ENV=#{CURR_ENV}#
VUE_APP_NET_API_URL=#{NET_API_URL}#
VITE_APP_API_URL=#{API_URL}#
VITE_APP_CURR_ENV=#{CURR_ENV}#
VITE_APP_NET_API_URL=#{NET_API_URL}#
7 changes: 3 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
module.exports = {
root: true,
env: {
node: true,
es2022: true
node: true
},
extends: [
'plugin:vue/essential',
Expand All @@ -15,8 +14,8 @@ module.exports = {
ecmaVersion: 2020
},
rules: {
'no-console': import.meta.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': import.meta.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'prettier/prettier': ['error', { endOfLine: 'auto' }],
'sort-imports': ['error', {"ignoreCase": true, "ignoreDeclarationSort": true }],
'@typescript-eslint/no-var-requires': 'off'
Expand Down
11 changes: 4 additions & 7 deletions index-ca-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,21 @@
src="https://www.canada.ca/etc/designs/canada/cdts/gcweb/rn/cdts/compiled/wet-en.js"
></script>
<link rel="stylesheet" href="scripts/highcharts-editor/highcharts-editor.min.css" />
<link rel="stylesheet" href="scripts/ramp4/ramp.css" />

<!-- top reference links and no-script fallback -->
<noscript> <%= require('html-loader!../src/assets/static/cdts/refTop.html') %> </noscript>
<script type="text/javascript">
document.write(wet.builder.refTop({}));
</script>
</head>
<body>
<!-- template top and no-script fallback -->
<div id="def-top">d<%= require('html-loader!../src/assets/static/cdts/top-en.html') %></div>
<div id="def-top"></div>

<div id="wb-cont">
<div id="app"></div>
</div>

<!-- template footer and no-script fallback -->
<div id="def-footer"><%= require('html-loader!../src/assets/static/cdts/footer-en.html') %></div>
<div id="def-footer"></div>

<script type="text/javascript">
// URL Parsing for Language Switch
Expand Down Expand Up @@ -104,8 +101,8 @@
document.write(wet.builder.refFooter({}));
</script>

<script src="scripts/highcharts-editor/highcharts-editor.complete.js"></script>
<script src="scripts/ramp4/ramp.js"></script>
<script type="module" src="/src/main.ts"></script>
<script type="module" src="scripts/highcharts-editor/highcharts-editor.complete.js"></script>

<style>
html {
Expand Down
10 changes: 4 additions & 6 deletions index-ca-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,20 @@
<link rel="stylesheet" href="scripts/highcharts-editor/highcharts-editor.min.css" />
<link rel="stylesheet" href="scripts/ramp4/ramp.css" />

<!-- top reference links and no-script fallback -->
<noscript> <%= require('html-loader!../src/assets/static/cdts/refTop.html') %> </noscript>
<script type="text/javascript">
document.write(wet.builder.refTop({}));
</script>
</head>
<body>
<!-- template top and no-script fallback -->
<div id="def-top">d<%= require('html-loader!../src/assets/static/cdts/top-fr.html') %></div>
<div id="def-top"></div>

<div id="wb-cont">
<div id="app"></div>
</div>

<!-- template footer and no-script fallback -->
<div id="def-footer"><%= require('html-loader!../src/assets/static/cdts/footer-fr.html') %></div>
<div id="def-footer"></div>

<script type="text/javascript">
// URL Parsing for Language Switch
Expand Down Expand Up @@ -104,8 +102,8 @@
document.write(wet.builder.refFooter({}));
</script>

<script src="scripts/highcharts-editor/highcharts-editor.complete.js"></script>
<script src="scripts/ramp4/ramp.js"></script>
<script type="module" src="/src/main.ts"></script>
<script type="module" src="scripts/highcharts-editor/highcharts-editor.complete.js"></script>

<style>
html {
Expand Down
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
<!-- built files will be auto injected -->

<script type="module" src="/src/main.ts"></script>
<script src="scripts/highcharts-editor/highcharts-editor.complete.js"></script>
<script src="scripts/ramp4/ramp.js"></script>
<script type="module" src="scripts/highcharts-editor/highcharts-editor.complete.js"></script>
</body>
</html>
<noscript>
Expand Down
Loading

0 comments on commit dd0cde7

Please sign in to comment.