diff --git a/package.json b/package.json index 5cdef58..ea96085 100755 --- a/package.json +++ b/package.json @@ -8,8 +8,14 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "@fortawesome/fontawesome-free": "^5.12.1", + "@fortawesome/fontawesome-svg-core": "^1.2.27", + "@fortawesome/free-solid-svg-icons": "^5.12.1", + "@fortawesome/vue-fontawesome": "^0.1.9", "core-js": "^3.4.4", - "vue": "^2.6.10" + "vue": "^2.6.10", + "vue-i18n": "^8.15.3", + "vue-router": "^3.1.5" }, "devDependencies": { "@vue/cli-plugin-babel": "^4.1.0", diff --git a/src/App.vue b/src/App.vue index a78afa5..37b181a 100755 --- a/src/App.vue +++ b/src/App.vue @@ -1,190 +1,18 @@ diff --git a/src/components/SoftBox.vue b/src/components/SoftBox.vue index 31bbcc0..79505d2 100755 --- a/src/components/SoftBox.vue +++ b/src/components/SoftBox.vue @@ -1,34 +1,47 @@ diff --git a/src/components/home.vue b/src/components/home.vue new file mode 100644 index 0000000..0a9d432 --- /dev/null +++ b/src/components/home.vue @@ -0,0 +1,142 @@ + + + diff --git a/src/main.js b/src/main.js index b1e02fb..211457c 100755 --- a/src/main.js +++ b/src/main.js @@ -1,10 +1,26 @@ import Vue from 'vue' import App from './App.vue' +import VueRouter from 'vue-router' +import { library } from '@fortawesome/fontawesome-svg-core' +import { faUserSecret } from '@fortawesome/free-solid-svg-icons' +import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' +import '@fortawesome/fontawesome-free/css/all.css' +import '@fortawesome/fontawesome-free/js/all.js' +import {routes} from './routes' +Vue.use(VueRouter) + +const router = new VueRouter({routes}) + +library.add(faUserSecret) + +Vue.component('fa', FontAwesomeIcon) + + Vue.config.productionTip = false import "@/assets/styles.css" -import "@/assets/fontawesome.min.css" new Vue({ + router, render: h => h(App), }).$mount('#app') diff --git a/src/routes.js b/src/routes.js new file mode 100644 index 0000000..2437fe6 --- /dev/null +++ b/src/routes.js @@ -0,0 +1,258 @@ + +/* + +routes + +Ŝi vous voulez ajouter un nouveau contenu,ca se passe ici +Prenez les exemples et modifiez le contenu. +Vous ne savez pas coder ? +Ouvrez une issue sur git.duniter.org/g1land/website/issues +*/ +import softbox from '@/components/SoftBox.vue' +import choicebox from '@/components/ChoiceBox.vue' +import home from '@/components/home.vue' + export const routes = [ + + /* + { path: '/gchange', + component: softbox, + props: { + name: "gchange", + img: "gchange.svg", + desc: "Gchange est le marketplace le plus utilisé pour les achats en g1", + licence:"AGPL V3", + href:"https://gchange.fr" + } +}, +*/ +{ path: '/axiom', +component: softbox, + props: { +name: "Axiom Team", + img: "axiom.svg", + desc: "Axiom Team a pour but de promouvoir la g1 dans ses antennes locales", + licence:"AGPL V3", + href:"https://axiom-team.fr", + +} +}, +{ path: '/mlo', +component: softbox, + props: { +name: "Monnaie Libre Occitanie", + img: "mlo.png", + desc: "Monnaie libre occitanie est le groupe local occitan de la g1", + licence:"AGPL V3", + href:"https://monnaielibreoccitanie.org", + +} +}, +{ path: '/toilefr', +component: softbox, + props: { +name: "Toile Francilienne", + img: "toilefr.svg", + desc: "La toile francilienne est le groupe local francilien de la g1", + licence:"AGPL V3", + href:"https://iledefrance.monnaie-libre.fr/", + +} +}, +{ path: '/nlibre', +component: softbox, + props: { +name: "Normandie Libre", + img: "nlibre.png", + desc: "Normandie Libre est le groupe local normand de la g1", + licence:"AGPL V3", + href:"https://normandie-libre.fr", + +} +}, +{ path: '/mllille', +component: softbox, + props: { +name: "Monnaie Libre Lille", + img: "gchange.svg", + desc: "Monnaie Libre Lille est le groupe local lillois de la g1", + licence:"AGPL V3", + href:"https://lille.monnaie-libre.fr/", + +} +}, +{ path: '/sou', +component: softbox, + props: { +name: "Le Sou", + img: "sou.png", + desc: "Le Sou est le groupe local mayennois de la g1", + licence:"AGPL V3", + href:"https://www.le-sou.org/", + +} +}, + { path: '/gchange', + component: softbox, + props: { + name: "gchange", + img: "gchange.svg", + desc: "Gchange est le marketplace le plus utilisé pour les achats en g1", + licence:"AGPL V3", + href:"https://gchange.fr", + + } +}, +{ path: '/silkaj', +component: softbox, + props: { +name: "Silkaj", + img: "silkaj.svg", + desc: "Silkaj est un client duniter en ligne de commande", + licence:"AGPL V3", + href:"https://silkaj.duniter.org" +} +}, +{ path: '/duniter', +component: softbox, + props: { +name: "Duniter", + img: "duniter.svg", + desc: "Duniter est le moteur de blockchain de la monnaie libre g1", + licence:"AGPL V3", + href:"https://duniter.org" +} +}, +{ path: '/sakia', +component: softbox, + props: { +name: "Sakia", + img: "sakia.svg", + desc: "Sakia est un client duniter qui se synchronise sur plusieurs noeuds a la fois", + licence:"AGPL V3", + href:"https://sakia-wallet.org" +} +}, +{ path: '/cesium', +component: softbox, + props: { +name: "Cesium", + img: "cesium.svg", + desc: "Cesium est le logiciel le plus simple pour gérer ses comptes g1", + licence:"AGPL V3", + href:"https://cesium.app" +} +}, + + { + path: '/finance', component: choicebox , + props: { + buttons: "", + links: "", + }, + +}, +{ + path: '/services-instances', component: choicebox , + props: { + buttons: "", + links: "", + }, + +}, +{ + path: '/tools', component: choicebox , + props: { + buttons: "", + links: "", + }, + +}, +{ + path: '/change', component: choicebox , + props: { + buttons: "", + links: "", + }, + +}, +{ + path: '/faq', component: choicebox , + props: { + buttons: "", + links: "", + }, + +}, +{ + path: '/blockchain', component: choicebox , + props: { + buttons: "", + links: "", + }, + +}, +{ + path: '/trm', component: choicebox , + props: { + buttons: "", + links: "", + }, + +}, +{ + path: '/asso', component: choicebox , + props: { + buttons: "", + links: "", + }, + +}, +{ + path: '/forums', component: choicebox , + props: { + buttons: "", + links: "", + }, + +}, +{ + path: '/agpl', component: choicebox , + props: { + buttons: "", + links: "", + }, + +}, +{ + path: '/tdc', component: choicebox , + props: { + buttons: "", + links: "", + }, + +}, + +{ + path: '/com', component: choicebox , + props: { + buttons: "", + links: "", + }, +}, + { + path: '/website', component: choicebox , + props: { + buttons: "Sites Locaux,Sites Officiels,Sites Individuels", + links: "/#/webloc,/#/weboff,/#/webind", + }, + }, + { + path: '/weboff', component: choicebox , + props: { + buttons: "Cesium,Duniter,monnaie-libre.fr,Gchange,Gannonce", + links: "https://cesium.app,https://duniter.org,https://monnaie-libre.fr,https://gchange.fr,https://gannonce.duniter.org", + }, + +}, + { path: '/', component: home } +] diff --git a/yarn.lock b/yarn.lock index 090e975..03c7df6 100755 --- a/yarn.lock +++ b/yarn.lock @@ -768,6 +768,35 @@ lodash "^4.17.13" to-fast-properties "^2.0.0" +"@fortawesome/fontawesome-common-types@^0.2.27": + version "0.2.27" + resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.27.tgz#19706345859fc46adf3684ed01d11b40903b87e9" + integrity sha512-97GaByGaXDGMkzcJX7VmR/jRJd8h1mfhtA7RsxDBN61GnWE/PPCZhOdwG/8OZYktiRUF0CvFOr+VgRkJrt6TWg== + +"@fortawesome/fontawesome-free@^5.12.1": + version "5.12.1" + resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-5.12.1.tgz#2a98fea9fbb8a606ddc79a4680034e9d5591c550" + integrity sha512-ZtjIIFplxncqxvogq148C3hBLQE+W3iJ8E4UvJ09zIJUgzwLcROsWwFDErVSXY2Plzao5J9KUYNHKHMEUYDMKw== + +"@fortawesome/fontawesome-svg-core@^1.2.27": + version "1.2.27" + resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-1.2.27.tgz#e4db8e3be81a40988213507c3e3d0c158a6641a3" + integrity sha512-sOD3DKynocnHYpuw2sLPnTunDj7rLk91LYhi2axUYwuGe9cPCw7Bsu9EWtVdNJP+IYgTCZIbyARKXuy5K/nv+Q== + dependencies: + "@fortawesome/fontawesome-common-types" "^0.2.27" + +"@fortawesome/free-solid-svg-icons@^5.12.1": + version "5.12.1" + resolved "https://registry.yarnpkg.com/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.12.1.tgz#76b6f958a3471821ff146f8f955e6d7cfe87147c" + integrity sha512-k3MwRFFUhyL4cuCJSaHDA0YNYMELDXX0h8JKtWYxO5XD3Dn+maXOMrVAAiNGooUyM2v/wz/TOaM0jxYVKeXX7g== + dependencies: + "@fortawesome/fontawesome-common-types" "^0.2.27" + +"@fortawesome/vue-fontawesome@^0.1.9": + version "0.1.9" + resolved "https://registry.yarnpkg.com/@fortawesome/vue-fontawesome/-/vue-fontawesome-0.1.9.tgz#d3af6d4e50f337327de90447fe35fa1e117a2fbe" + integrity sha512-h/emhmZz+DfB2zOGLWawNwXq82UYhn9waTfUjLLmeaIqtnIyNt6kYlpQT/vzJjLZRDRvY2IEJAh1di5qKpKVpA== + "@hapi/address@2.x.x": version "2.1.4" resolved "https://registry.yarnpkg.com/@hapi/address/-/address-2.1.4.tgz#5d67ed43f3fd41a69d4b9ff7b56e7c0d1d0a81e5" @@ -7738,6 +7767,11 @@ vue-hot-reload-api@^2.3.0: resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2" integrity sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog== +vue-i18n@^8.15.3: + version "8.15.3" + resolved "https://registry.yarnpkg.com/vue-i18n/-/vue-i18n-8.15.3.tgz#9f947802d9b734fcb92e2ce724da654f2f9fc0f4" + integrity sha512-PVNgo6yhOmacZVFjSapZ314oewwLyXHjJwAqjnaPN1GJAJd/dvsrShGzSiJuCX4Hc36G4epJvNXUwO8y7wEKew== + vue-loader@^15.7.2: version "15.8.3" resolved "https://registry.yarnpkg.com/vue-loader/-/vue-loader-15.8.3.tgz#857cb9e30eb5fc25e66db48dce7e4f768602a23c" @@ -7749,6 +7783,11 @@ vue-loader@^15.7.2: vue-hot-reload-api "^2.3.0" vue-style-loader "^4.1.0" +vue-router@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-3.1.5.tgz#ff29b8a1e1306c526b52d4dc0532109f16c41231" + integrity sha512-BszkPvhl7I9h334GjckCh7sVFyjTPMMJFJ4Bsrem/Ik+B/9gt5tgrk8k4gGLO4ZpdvciVdg7O41gW4DisQWurg== + vue-style-loader@^4.1.0: version "4.1.2" resolved "https://registry.yarnpkg.com/vue-style-loader/-/vue-style-loader-4.1.2.tgz#dedf349806f25ceb4e64f3ad7c0a44fba735fcf8"