-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pierrick <[email protected]>
- Loading branch information
Showing
19 changed files
with
969 additions
and
4,282 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* eslint-env node */ | ||
require('@rushstack/eslint-patch/modern-module-resolution') | ||
|
||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'plugin:vue/vue3-essential', | ||
'eslint:recommended', | ||
'@vue/eslint-config-prettier/skip-formatting' | ||
], | ||
parserOptions: { | ||
ecmaVersion: 'latest' | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -17,4 +17,6 @@ yarn-error.log* | |
coverage | ||
|
||
# Netlify build folders and files | ||
.netlify/plugins | ||
.netlify/plugins | ||
|
||
functions/*.zip |
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,5 +1,7 @@ | ||
{ | ||
"tabWidth": 2, | ||
"$schema": "https://json.schemastore.org/prettierrc", | ||
"semi": false, | ||
"singleQuote": true | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"trailingComma": "none" | ||
} |
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,9 +1,9 @@ | ||
[build] | ||
command = "yarn build" | ||
publish = "dist/website" | ||
functions = "dist/functions" | ||
publish = "website/dist" | ||
|
||
[[plugins]] | ||
package = "netlify-plugin-inline-functions-env" | ||
[plugins.inputs] | ||
buildEvent = "onBuild" | ||
[functions] | ||
directory = "functions" | ||
|
||
[dev] | ||
functions = "functions" |
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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,51 +5,29 @@ | |
"description": "Website for GBFS validator", | ||
"author": "Pierrick <[email protected]>", | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"lint": "vue-cli-service lint", | ||
"dev": "vite", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore", | ||
"format": "prettier --write src/", | ||
"test": "echo \"Error: no test specified\" && exit 0" | ||
}, | ||
"dependencies": { | ||
"bootstrap": "^5.0.1", | ||
"bootstrap-vue": "^2.21.2", | ||
"bootstrap-vue": "^2.23.1", | ||
"sass": "^1.34.1", | ||
"sass-loader": "^12.0.0", | ||
"vue": "^2.7.14", | ||
"vue": "^3.3.2", | ||
"@vue/compat": "^3.3.2", | ||
"vue-gtag": "1.16.1" | ||
}, | ||
"devDependencies": { | ||
"@vue/cli-plugin-babel": "^5.0.6", | ||
"@vue/cli-plugin-eslint": "^5.0.6", | ||
"@vue/cli-service": "^5.0.6", | ||
"babel-eslint": "^10.0.1", | ||
"core-js": "^3.30.1", | ||
"eslint": "^7.32.0", | ||
"eslint-plugin-vue": "^5.0.0", | ||
"vue-template-compiler": "^2.5.21" | ||
}, | ||
"eslintConfig": { | ||
"root": true, | ||
"env": { | ||
"node": true | ||
}, | ||
"extends": [ | ||
"plugin:vue/essential", | ||
"eslint:recommended" | ||
], | ||
"rules": {}, | ||
"parserOptions": { | ||
"parser": "babel-eslint" | ||
} | ||
}, | ||
"postcss": { | ||
"plugins": { | ||
"autoprefixer": {} | ||
} | ||
}, | ||
"browserslist": [ | ||
"> 1%", | ||
"last 2 versions", | ||
"not ie <= 8" | ||
] | ||
"@rushstack/eslint-patch": "^1.2.0", | ||
"@vitejs/plugin-vue": "^4.2.3", | ||
"@vue/eslint-config-prettier": "^7.1.0", | ||
"eslint": "^8.39.0", | ||
"eslint-plugin-vue": "^9.11.0", | ||
"prettier": "^2.8.8", | ||
"vite": "^4.3.5" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,47 @@ | ||
<script setup> | ||
import { defineProps } from 'vue' | ||
import { BIconDownload } from 'bootstrap-vue' | ||
const props = defineProps(['file']) | ||
function jsonAsBlob(data, fileName) { | ||
const a = document.createElement('a') | ||
document.body.appendChild(a) | ||
a.style = 'display: none' | ||
const blob = new Blob([JSON.stringify(data, null, 2)], { | ||
type: 'application/json' | ||
}) | ||
const url = window.URL.createObjectURL(blob) | ||
a.href = url | ||
a.download = fileName | ||
a.click() | ||
window.URL.revokeObjectURL(url) | ||
} | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<a v-if="file.schema" href="#" @click.prevent="jsonAsBlob(file.schema, `${file.file}-schema.json`)" v-b-tooltip.hover title="Download the validation schema"> | ||
<a | ||
v-if="file.schema" | ||
href="#" | ||
@click.prevent="jsonAsBlob(file.schema, `${file.file}-schema.json`)" | ||
v-b-tooltip.hover | ||
title="Download the validation schema" | ||
> | ||
<b-icon-download /> | ||
</a> | ||
<a v-else-if="file.languages && file.languages[0] && file.languages[0].schema" @click.prevent="jsonAsBlob(file.languages[0].schema, `${file.file}-schema.json`)" href="#" v-b-tooltip.hover title="Download the validation schema"> | ||
<a | ||
v-else-if=" | ||
file.languages && file.languages[0] && file.languages[0].schema | ||
" | ||
@click.prevent=" | ||
jsonAsBlob(file.languages[0].schema, `${file.file}-schema.json`) | ||
" | ||
href="#" | ||
v-b-tooltip.hover | ||
title="Download the validation schema" | ||
> | ||
<b-icon-download /> | ||
</a> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { BIconDownload } from 'bootstrap-vue' | ||
export default { | ||
name: 'DownloadSchema', | ||
components: { BIconDownload }, | ||
props: ['file'], | ||
methods: { | ||
jsonAsBlob(data, fileName) { | ||
const a = document.createElement('a') | ||
document.body.appendChild(a) | ||
a.style = 'display: none' | ||
const blob = new Blob([JSON.stringify(data, null, 2)], { | ||
type: 'application/json' | ||
}) | ||
const url = window.URL.createObjectURL(blob) | ||
a.href = url | ||
a.download = fileName | ||
a.click() | ||
window.URL.revokeObjectURL(url) | ||
} | ||
} | ||
} | ||
</script> |
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.