Make kandimat useable
This commit is contained in:
parent
dc1602b6e8
commit
77f54653f8
|
@ -4,7 +4,7 @@
|
|||
"extensions": {
|
||||
"endpoints": {
|
||||
"Remote SWAPI GraphQL Endpoint": {
|
||||
"url": "http://localhost:5433/graphql",
|
||||
"url": "http://localhost:3000/graphql",
|
||||
"headers": {
|
||||
"user-agent": "JS GraphQL"
|
||||
},
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
FROM node:13.7.0
|
||||
|
||||
ENV CONTAINER_PATH /var/www/docker-vue
|
||||
|
||||
WORKDIR $CONTAINER_PATH
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY postcss.config.js babel.config.js .eslintrc.js ./
|
||||
COPY public ./public
|
||||
COPY resources ./resources
|
||||
COPY bin ./bin
|
||||
COPY src ./src
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["npm", "run", "serve"]
|
Binary file not shown.
Before Width: | Height: | Size: 197 KiB |
|
@ -5,11 +5,11 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Kandimat</title>
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/img/icons/favicon_gruene_16x16.png">
|
||||
<!--[if IE]><link rel="shortcut icon" href="/img/favicon.ico"><![endif]-->
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="./img/icons/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="./img/icons/favicon_gruene_16x16.png">
|
||||
<!--[if IE]><link rel="shortcut icon" href="./img/icons/favicon-32x32.png"><![endif]-->
|
||||
<!-- Add to home screen for Android and modern mobile browsers -->
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
<link rel="manifest" href="./manifest.json">
|
||||
<meta name="theme-color" content="#59ae2e">
|
||||
<!-- Open Graph -->
|
||||
<meta property="og:url" content="https://www.kandimat.info" />
|
||||
|
@ -21,16 +21,14 @@
|
|||
<meta property="og:locale:alternate" content="si_SI" />
|
||||
<meta property="og:locale:alternate" content="dk_DK" />
|
||||
<meta property="og:description" content="The Kandimat is not a regular voting advice application. On the contrary, it is your digital tool navigating you through the policies and visions of the current Candidates. The goal of the Kandimat is to support you to make an informed choice for the upcoming European elections!" />
|
||||
<meta property="og:image" content="https://www.euromat.info/img/facebook.2.png" />
|
||||
<meta property="og:image:secure_url" content="https://www.euromat.info/img/facebook.2.png" />
|
||||
<meta property="fb:app_id" content="766231516835034" />
|
||||
<!-- Add to home screen for Safari on iOS -->
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<meta name="apple-mobile-web-app-title" content="Kandimat">
|
||||
<link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-152x152.png">
|
||||
<link rel="apple-touch-icon" href="./img/icons/apple-touch-icon-152x152.png">
|
||||
<!-- Add to home screen for Windows -->
|
||||
<meta name="msapplication-TileImage" content="/img/icons/msapplication-icon-144x144.png">
|
||||
<meta name="msapplication-TileImage" content="./img/icons/msapplication-icon-144x144.png">
|
||||
<meta name="msapplication-TileColor" content="#40A6EE">
|
||||
</head>
|
||||
<body>
|
||||
|
@ -56,24 +54,5 @@
|
|||
|
||||
<div id="app"></div>
|
||||
<!-- built files will be auto injected -->
|
||||
|
||||
<script>
|
||||
window.fbAsyncInit = () => {
|
||||
FB.init({
|
||||
appId: '766231516835034',
|
||||
xfbml: true,
|
||||
version: 'v2.10'
|
||||
})
|
||||
FB.AppEvents.logPageView()
|
||||
}
|
||||
|
||||
(function(d, s, id){
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) {return;}
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/en_US/sdk.js";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
4
run-dev.sh
Executable file
4
run-dev.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
npm ci
|
||||
npm run serve
|
File diff suppressed because one or more lines are too long
|
@ -5,6 +5,8 @@ import App from '@/app/app'
|
|||
import router from '@/router'
|
||||
import i18n from '@/i18n'
|
||||
import storage from '@/helper/storage'
|
||||
// eslint-disable-next-line
|
||||
import styles from './styles/fonts.scss'
|
||||
|
||||
import '@/registerComponents'
|
||||
import '@/registerServiceWorker'
|
||||
|
@ -17,7 +19,7 @@ Vue.use(storage)
|
|||
Vue.use(VueApollo)
|
||||
|
||||
const apolloClient = new ApolloClient({
|
||||
uri: 'http://localhost:5433/graphql'
|
||||
uri: process.env.VUE_APP_BACKEND_URL
|
||||
})
|
||||
|
||||
const apolloProvider = new VueApollo({
|
||||
|
|
|
@ -15,11 +15,13 @@ import { routes as contact } from '@/app/contact'
|
|||
import { routes as imprint } from '@/app/imprint'
|
||||
import { routes as privacy } from '@/app/privacy'
|
||||
import { routes as fourzerofour } from '@/app/404'
|
||||
import { publicPath } from '../../vue.config'
|
||||
|
||||
Vue.use(Router)
|
||||
|
||||
const router = new Router({
|
||||
mode: 'history',
|
||||
base: publicPath,
|
||||
routes: [
|
||||
{
|
||||
path: '/:locale',
|
||||
|
|
6
vue.config.js
Normal file
6
vue.config.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
module.exports = {
|
||||
publicPath: process.env.VUE_APP_PUBLIC_URL,
|
||||
devServer: {
|
||||
disableHostCheck: true
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue