diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6b200ae..9136442 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ stages: - build # - test - - review + - deploy build_ui: image: node @@ -31,7 +31,7 @@ start_review: - docker dependencies: - build_ui - stage: review + stage: deploy script: - cat index.html - mkdir _for_upload @@ -46,7 +46,7 @@ stop_review: image: mwienk/docker-lftp tags: - docker - stage: review + stage: deploy variables: GIT_STRATEGY: none script: @@ -58,16 +58,27 @@ stop_review: -review_fullsync: +fullsync_review: image: mwienk/docker-lftp tags: - docker dependencies: - build_ui - stage: review + stage: deploy script: - mkdir _for_upload - mv assets build conf index.html _for_upload - lftp -c "set sftp:auto-confirm yes; open -u intern_basispanel_ui,$FTP_PASSWORD sftp://ftp.basehosts.de;mkdir -f /$CI_COMMIT_REF_NAME; mirror -v --transfer-all -e -R -L _for_upload/ /$CI_COMMIT_REF_NAME" when: manual + +docker_test: + tags: + - shell + dependencies: + - build_ui + stage: deploy + script: + - mkdir _for_docker + - mv assets build conf index.html _for_docker + - docker-compose up -d --build diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b71916d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM larsks/thttpd + +ADD _for_docker/ / diff --git a/conf/init.json b/conf/init.json index 1ca3c30..d325ff3 100644 --- a/conf/init.json +++ b/conf/init.json @@ -22,9 +22,9 @@ "icon": "icon-contacts" }, { - "name": "FormDemo", - "to": "/formdemo", - "icon": "icon-contacts" + "name": "Settings", + "to": "/settings", + "icon": "icon-cog" } ], "profile": [ @@ -63,9 +63,9 @@ "content": "" }, { - "name": "FormDemo", - "to": "/formdemo", - "content": "" + "name": "Settings", + "to": "/settings", + "content": "" }, { "name": "Logout", @@ -78,4 +78,4 @@ "content": "

Profil anpassen

" } ] -} \ No newline at end of file +} diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9248f2b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,23 @@ +version: "2.1" + +services: + frontend: + build: . + image: ${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME} + container_name: ${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME} + restart: always + networks: + - web + - default + expose: + - "80" + labels: + - "traefik.backend=${CI_PROJECT_NAME}.${CI_COMMIT_REF_NAME}" + - "traefik.docker.network=web" + - "traefik.frontend.rule=Host:${CI_COMMIT_REF_NAME}.${CI_PROJECT_NAME}.dev.basehosts.de" + - "traefik.enable=true" + - "traefik.port=80" + +networks: + web: + external: true diff --git a/src/app.less b/src/app.less index 115bd05..d831993 100644 --- a/src/app.less +++ b/src/app.less @@ -89,7 +89,7 @@ a:hover {color:#901624;} --------------------------------------------------------------*/ .input_holder {margin-bottom:20px; display:block;} .input_header {margin-bottom:10px;} -.input_description {font-size:13px; color: @text_color;} +.input_description {font-size:13px; color: lighten(@text_color, 20%);} input, textarea, select { font-family: @font_family; width: 100%; @@ -98,20 +98,41 @@ input, textarea, select { padding: 0px 10px; color: @text_color; background: white; - border: solid 1px #CCC; - outline: none; - font-size: 14px; - transition: all 0.3s; + border: solid 1px #CCC; + outline: none; + font-size: 14px; + transition: background 0.3s, color 0.3s, border 0.3s; } textarea {padding:10px; height:auto;} input:focus, textarea:focus, select:focus {background:#FFF; border-color: @cms_brand_primary;} label {font-weight:600; color: @text_color;} +.checkbox_holder { + position: relative; + height: 100%; + min-height: 18px; + + &:hover .check_checkbox { + border: 1px solid @cms_brand_primary; + } + + label { + display: block; + position: absolute; + top: 50%; + margin-top: -9px; + width: 18px; + height: 18px; + cursor: pointer; + z-index: 10; + } +} + input[type="checkbox"] { position: absolute; top: -10px; left: -10px; - line-height:50px; + line-height: 50px; visibility: hidden; display: inline-block; margin: 0; @@ -119,7 +140,6 @@ input[type="checkbox"] { width: auto; height: auto; } -.checkbox_holder {position:absolute; top:0px; bottom:0px;} .check_checkbox { background: #FFF; display: block; @@ -167,8 +187,6 @@ button{ padding: 0px 30px; border-radius: 20px; } -.cell_checkbox label {width:18px; height:18px; display:block; cursor:pointer; z-index:10; position: absolute; top:50%; margin-top:-9px;} -.checkbox_holder:hover .check_checkbox {border: 1px solid @cms_brand_primary;} /*-------------------------------------------------------------- # CMS CONTENT FORM diff --git a/src/components/my-form.vue b/src/components/my-form.vue index ca58c2a..e299e56 100644 --- a/src/components/my-form.vue +++ b/src/components/my-form.vue @@ -1,18 +1,18 @@ \ No newline at end of file diff --git a/src/components/topbar.vue b/src/components/topbar.vue index 88b491f..4c837f6 100644 --- a/src/components/topbar.vue +++ b/src/components/topbar.vue @@ -162,6 +162,7 @@ export default { padding: 4px 10px; font-size: 0; color: white; + user-select: none; &:hover { cursor: pointer; diff --git a/src/variables.less b/src/variables.less index 6b726d8..a80ae95 100644 --- a/src/variables.less +++ b/src/variables.less @@ -5,7 +5,7 @@ @font_family: "Open Sans", sans-serif; @text_color: #333; -@font_size: 14px; +@font_size: 15px; @line_height_base: 1.4; @line_height_heading: 1.2; diff --git a/src/views/dashboard.vue b/src/views/dashboard.vue index 771256a..d757dc4 100644 --- a/src/views/dashboard.vue +++ b/src/views/dashboard.vue @@ -1,6 +1,6 @@ diff --git a/src/views/forms/form-demo.vue b/src/views/forms/form-demo.vue deleted file mode 100644 index 73730b8..0000000 --- a/src/views/forms/form-demo.vue +++ /dev/null @@ -1,98 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/forms/login.vue b/src/views/forms/login.vue index 263813b..cd2652f 100644 --- a/src/views/forms/login.vue +++ b/src/views/forms/login.vue @@ -7,14 +7,10 @@

Bitte melde dich mit deinen Benutzerdaten an.

- -
{{ loginError }}
- -
@@ -22,11 +18,13 @@ + + \ No newline at end of file diff --git a/src/views/lists/domainlist.vue b/src/views/lists/domainlist.vue index f6ad94e..cfded05 100644 --- a/src/views/lists/domainlist.vue +++ b/src/views/lists/domainlist.vue @@ -1,12 +1,12 @@