Skip to content

Commit 341c5da

Browse files
committed
Add markdown compilation step
1 parent ae6fe89 commit 341c5da

File tree

15 files changed

+862
-881
lines changed

15 files changed

+862
-881
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,16 @@
1717
"lint": "vue-cli-service lint",
1818
"test": "vue-cli-service test:unit --coverage && vue-cli-service test:e2e",
1919
"i18n:report": "vue-cli-service i18n:report -v --src src/**/*.vue --locales src/locales/**.json -o output.json",
20-
"test:cypress": "node_modules/.bin/cypress open"
20+
"test:cypress": "node_modules/.bin/cypress open",
21+
"convertLocales": "node src/utils/locales.mjs"
2122
},
2223
"dependencies": {
2324
"@creativecommons/vocabulary": "^2020.11.3",
2425
"@creativecommons/vue-vocabulary": "^2020.11.3",
25-
"@fullhuman/postcss-purgecss": "^3.1.3",
26-
"@linusborg/vue-simple-portal": "^0.1.4",
2726
"@sentry/vue": "^5.29.2",
2827
"buefy": "^0.9.4",
2928
"clipboard": "^2.0.6",
3029
"core-js": "^3.6.5",
31-
"cypress": "^6.2.1",
32-
"markdown-it": "^12.0.3",
3330
"node-sass": "^4.14.1",
3431
"sass-loader": "^8.0.2",
3532
"vue": "^2.6.10",
@@ -40,6 +37,7 @@
4037
"vuex": "^3.5.1"
4138
},
4239
"devDependencies": {
40+
"@fullhuman/postcss-purgecss": "^3.1.3",
4341
"@vue/cli-plugin-babel": "^4.4.6",
4442
"@vue/cli-plugin-e2e-nightwatch": "^4.4.6",
4543
"@vue/cli-plugin-eslint": "^4.4.6",
@@ -50,13 +48,15 @@
5048
"babel-eslint": "^10.1.0",
5149
"chromedriver": "^87.0.0",
5250
"clipboardy": "^2.3.0",
51+
"cypress": "^6.2.1",
5352
"eslint": "^6.8.0",
5453
"eslint-plugin-import": "^2.22.0",
5554
"eslint-plugin-node": "^10.0.0",
5655
"eslint-plugin-promise": "^4.2.1",
5756
"eslint-plugin-standard": "^4.0.1",
5857
"eslint-plugin-vue": "^6.2.2",
5958
"geckodriver": "^1.19.1",
59+
"markdown-it": "^12.0.3",
6060
"shx": "^0.3.3",
6161
"vue-cli-plugin-i18n": "^0.6.1",
6262
"vue-template-compiler": "^2.6.10"

src/App.vue

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
@restart="restart"
3535
@done="done"
3636
/>
37-
<help-section />
37+
<help-section @change="openChooserModal" />
3838
</div>
3939
<div class="column right-column">
4040
<!-- The right column with the recommended license should be fixed until
@@ -58,13 +58,18 @@
5858
</div>
5959
</div>
6060
<footer-section />
61+
<chooser-modal
62+
:active-modal="openModal"
63+
@close="closeChooserModal"
64+
/>
6165
</div>
6266
</template>
6367

6468
<script>
6569
// TODO Reduce custom styling in favour of Vocabulary styles
6670
import { mapMutations } from 'vuex'
6771
72+
import ChooserModal from './components/ChooserModal'
6873
import HelpSection from './components/HelpSection'
6974
import Stepper from './components/Stepper'
7075
import LicenseUseCard from './components/LicenseUseCard'
@@ -80,11 +85,13 @@ export default {
8085
LicenseDetailsCard,
8186
LicenseUseCard,
8287
HeaderSection,
83-
FooterSection
88+
FooterSection,
89+
ChooserModal
8490
},
8591
data() {
8692
return {
8793
currentStepId: 0,
94+
openModal: null,
8895
showLicense: false,
8996
shouldShake: false,
9097
windowWidth: window.innerWidth
@@ -165,6 +172,14 @@ export default {
165172
},
166173
onResize() {
167174
this.windowWidth = window.innerWidth
175+
},
176+
openChooserModal(modal) {
177+
console.log('Open chooser modal: ', modal, this.openModal)
178+
this.openModal = modal
179+
console.log('Open chooser modal: ', modal, this.openModal)
180+
},
181+
closeChooserModal() {
182+
this.openModal = null
168183
}
169184
}
170185
}

0 commit comments

Comments
 (0)