Compare commits
9 Commits
drone
...
59b138be5e
Author | SHA1 | Date | |
---|---|---|---|
|
59b138be5e | ||
|
fa83860c0a | ||
|
1b8f85606f | ||
|
da23d9cda0 | ||
|
c20329d2b3 | ||
|
e875af8e49 | ||
|
58a1e109ce | ||
|
0c67cbf6da | ||
|
b124bc8c3a |
42
.drone.yml
Normal file
42
.drone.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
|
||||
steps:
|
||||
- name: code-analysis
|
||||
image: sonarsource/sonar-scanner-cli
|
||||
detach: true
|
||||
failure: ignore
|
||||
commands:
|
||||
- ls -la
|
||||
- sonar-scanner -Dsonar.projectKey=LDC-WWW -Dsonar.sources=. -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN
|
||||
environment:
|
||||
SONAR_HOST_URL:
|
||||
from_secret: sonarScannerHostUrl
|
||||
SONAR_LOGIN:
|
||||
from_secret: sonarScannerLogin
|
||||
|
||||
|
||||
- name: build
|
||||
image: node:14
|
||||
commands:
|
||||
- npm install
|
||||
- echo $VUE_APP_API_BASE_URL
|
||||
- npm run lint
|
||||
- npm run build:prod
|
||||
environment:
|
||||
VUE_APP_API_BASE_URL:
|
||||
from_secret: baseurl
|
||||
|
||||
- name: scp files
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host: amine-louveau.fr
|
||||
username: ubuntu
|
||||
key:
|
||||
from_secret: privateKey
|
||||
port: 22
|
||||
target: /home/ubuntu/courses
|
||||
source: dist/*
|
||||
when:
|
||||
branch:
|
||||
- main
|
@@ -5,6 +5,7 @@
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
"build:prod": "vue-cli-service build --mode production",
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@@ -71,7 +71,3 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
@@ -157,7 +157,7 @@ export default {
|
||||
body: JSON.stringify({content: this.searchQ})
|
||||
}).then(r => {
|
||||
return r.json();
|
||||
}).then(result => {
|
||||
}).then(() => {
|
||||
this.searchQ = '';
|
||||
this.fetchListAndItems(true);
|
||||
})
|
||||
|
@@ -38,7 +38,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ListCreateUpdateModal from "../../../liste-de-courses-www/src/components/ListCreateUpdateModal";
|
||||
import ListCreateUpdateModal from "@/components/ListCreateUpdateModal";
|
||||
|
||||
export default {
|
||||
name: "Lists",
|
||||
components: {ListCreateUpdateModal},
|
||||
@@ -71,8 +72,8 @@ export default {
|
||||
'Content-Type': 'application/json;charset=utf-8',
|
||||
'X-API-KEY': localStorage.getItem('KEY')
|
||||
}
|
||||
}).then(r => {
|
||||
if (r.status !== 404) {
|
||||
}).then(result => {
|
||||
if (result.status !== 404) {
|
||||
this.lists = this.lists.filter(r => r.id !== item.id);
|
||||
}
|
||||
});
|
||||
@@ -102,7 +103,3 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
@@ -46,7 +46,3 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user