Compare commits
No commits in common. "29860637f9124cbfb50e2735d52dc04bbcf84145" and "6a9725c0d7f4fb30a48d4df2004dd3ea1d56ee3d" have entirely different histories.
29860637f9
...
6a9725c0d7
0
ui/.gitignore → .gitignore
vendored
|
@ -1,4 +0,0 @@
|
||||||
FROM node:lts-alpine
|
|
||||||
LABEL maintainer="joern-michael.miehe@lenaisten.de"
|
|
||||||
|
|
||||||
CMD [ "tail", "-f", "/dev/null" ]
|
|
|
@ -1,4 +0,0 @@
|
||||||
FROM nginx:stable-alpine
|
|
||||||
LABEL maintainer="joern-michael.miehe@lenaisten.de"
|
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
@ -1,23 +0,0 @@
|
||||||
upstream ui {
|
|
||||||
server ui:8080;
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream api {
|
|
||||||
server api:3000;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80 default_server;
|
|
||||||
server_name _;
|
|
||||||
|
|
||||||
error_log /dev/stderr;
|
|
||||||
access_log /dev/stdout;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
proxy_pass http://ui;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /api/ {
|
|
||||||
proxy_pass http://api;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -4,24 +4,12 @@ volumes:
|
||||||
frontend_home:
|
frontend_home:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
ui:
|
dev:
|
||||||
build: ui/docker
|
build: ./docker
|
||||||
restart: 'unless-stopped'
|
restart: "no"
|
||||||
volumes:
|
volumes:
|
||||||
- "frontend_home:/home/node"
|
- "frontend_home:/home/node"
|
||||||
- "${PWD}/ui:/srv/vue/bday2020"
|
- "${PWD}:/srv/vue/bday2020"
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- 8000:8000
|
||||||
|
- 8080:8080
|
||||||
api:
|
|
||||||
build: api
|
|
||||||
restart: 'no'
|
|
||||||
|
|
||||||
dev-proxy:
|
|
||||||
build: dev-proxy
|
|
||||||
restart: 'no'
|
|
||||||
ports:
|
|
||||||
- 8080:80
|
|
||||||
depends_on:
|
|
||||||
- ui
|
|
||||||
- api
|
|
Before Width: | Height: | Size: 412 KiB After Width: | Height: | Size: 412 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
@ -1,31 +1,24 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<img class="logo" alt="Lenaistenlogo" src="./assets/logo.png" />
|
<img class="logo" alt="Lenaistenlogo" src="./assets/logo.png">
|
||||||
<BDay />
|
<BDay />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import BDay from "./components/BDay.vue";
|
import BDay from './components/BDay.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "App",
|
name: 'App',
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
BDay,
|
BDay
|
||||||
},
|
}
|
||||||
|
}
|
||||||
computed: {
|
|
||||||
get_id: () => {
|
|
||||||
return window.location.pathname.substring(1);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
background-image: url("./assets/bg.jpg");
|
background-image: url('./assets/bg.jpg');
|
||||||
height: 100%;
|
height: 100%;
|
||||||
/* overflow:hidden; */
|
/* overflow:hidden; */
|
||||||
}
|
}
|
Before Width: | Height: | Size: 237 KiB After Width: | Height: | Size: 237 KiB |
Before Width: | Height: | Size: 496 KiB After Width: | Height: | Size: 496 KiB |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 155 KiB After Width: | Height: | Size: 155 KiB |
28
src/components/BDay.vue
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<template>
|
||||||
|
<div class="bday">
|
||||||
|
<h1>Alles Gute zu Deinem Geburtstag!</h1>
|
||||||
|
<vue-plyr>
|
||||||
|
<video poster='../assets/poster.png' autoplay="true">
|
||||||
|
<source src='/api/part1_240.mp4' type='video/mp4' size='240'>
|
||||||
|
<source src='/api/part1_360.mp4' type='video/mp4' size='360'>
|
||||||
|
<source src='/api/part1_480.mp4' type='video/mp4' size='480'>
|
||||||
|
</video>
|
||||||
|
</vue-plyr>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'BDay',
|
||||||
|
mounted: () => {
|
||||||
|
document.title = 'Herzlichen Glückwunsch!'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
div.bday {
|
||||||
|
margin: auto;
|
||||||
|
max-width: 850px;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -1,29 +0,0 @@
|
||||||
<template>
|
|
||||||
<div class="bday">
|
|
||||||
<h1>Alles Gute zu Deinem Geburtstag!</h1>
|
|
||||||
<vue-plyr>
|
|
||||||
<video poster="../assets/poster.png" autoplay="true">
|
|
||||||
<source src="/fake_api/part1_240.mp4" type="video/mp4" size="240" />
|
|
||||||
<source src="/fake_api/part1_360.mp4" type="video/mp4" size="360" />
|
|
||||||
<source src="/fake_api/part1_480.mp4" type="video/mp4" size="480" />
|
|
||||||
</video>
|
|
||||||
</vue-plyr>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: "BDay",
|
|
||||||
|
|
||||||
mounted: () => {
|
|
||||||
document.title = "Herzlichen Glückwunsch!";
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
div.bday {
|
|
||||||
margin: auto;
|
|
||||||
max-width: 850px;
|
|
||||||
}
|
|
||||||
</style>
|
|
|
@ -1,6 +0,0 @@
|
||||||
// vue.config.js
|
|
||||||
module.exports = {
|
|
||||||
devServer: {
|
|
||||||
disableHostCheck: true
|
|
||||||
}
|
|
||||||
}
|
|