From 57fe922d729f6f5092e2bcfa120cf5347e5ef9d3 Mon Sep 17 00:00:00 2001 From: "Ryan@AW" Date: Wed, 6 Jan 2021 18:19:57 -0500 Subject: [PATCH 01/14] adds dev server change for running integrated --- vue.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index 97815470..aa5ad948 100644 --- a/vue.config.js +++ b/vue.config.js @@ -100,12 +100,14 @@ module.exports = { lintOnSave: false, devServer: { + // if this isn't set you can't debug remotely with dev server running. + disableHostCheck: true, + // headers: { "Access-Control-Allow-Origin": "*" }, /** * disables linting overlay which disrupts workflow. * linting reserved for pre-commit git hook. */ - // headers: { "Access-Control-Allow-Origin": "*" }, overlay: { error: false, warning: false, From 6e430864c5c8a4c169e337fdd7c7dd0d5b4b27cf Mon Sep 17 00:00:00 2001 From: "Ryan@AW" Date: Thu, 7 Jan 2021 15:24:47 -0500 Subject: [PATCH 02/14] Settings that allow the SPA to run integrated. --- docker/watching/watch.sh | 2 +- scripts/dev-laravel.js | 23 +++++++++++++++++++++++ vue.config.js | 4 ++-- 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100755 scripts/dev-laravel.js diff --git a/docker/watching/watch.sh b/docker/watching/watch.sh index 7ddeff54..635c96d5 100755 --- a/docker/watching/watch.sh +++ b/docker/watching/watch.sh @@ -2,4 +2,4 @@ npm config set registry https://npm.americanwhitewater.org npm i rm -rf dist/* -npm run serve +node ./scripts/dev-laravel.js diff --git a/scripts/dev-laravel.js b/scripts/dev-laravel.js new file mode 100755 index 00000000..395f33b4 --- /dev/null +++ b/scripts/dev-laravel.js @@ -0,0 +1,23 @@ +#!/usr/bin/env node +require("dotenv").config(); +// grab cli service requirements. +const { error } = require("@vue/cli-shared-utils"); +const Service = require("@vue/cli-service/lib/Service"); +const service = new Service(process.env.VUE_CLI_CONTEXT || process.cwd()); + +//parse the environment base +const url = require("url"); +const baseURL = process.env.VUE_APP_BASE_URL || "http://localhost:9669"; +const parts = url.parse(baseURL); + +const command = "serve"; +const publicHost = `${parts.hostname}:${parts.port}`; + +//set container name based on URL base. +const args = ["--public", publicHost, "--port", parts.port]; +const argsV = { public: publicHost, port: parts.port }; + +service.run(command, argsV, args).catch((err) => { + error(err); + process.exit(1); +}); diff --git a/vue.config.js b/vue.config.js index aa5ad948..7893af8b 100644 --- a/vue.config.js +++ b/vue.config.js @@ -100,9 +100,9 @@ module.exports = { lintOnSave: false, devServer: { - // if this isn't set you can't debug remotely with dev server running. + // if these options aren't set HMR breaks and debugging remotely fails (say to local to VM) disableHostCheck: true, - // headers: { "Access-Control-Allow-Origin": "*" }, + headers: { "Access-Control-Allow-Origin": "*" }, /** * disables linting overlay which disrupts workflow. * linting reserved for pre-commit git hook. From 0a86f40abd052e66565095e27b45c6cb5eb4035c Mon Sep 17 00:00:00 2001 From: Eric Jones Date: Mon, 25 Jan 2021 09:45:25 -0800 Subject: [PATCH 03/14] articles done. Needs projects --- commonCommand.txt | 2 ++ .../components/_side-bar-articles.scss | 7 ++-- .../components/side-bar-articles.vue | 36 ++++++++++++++++--- 3 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 commonCommand.txt diff --git a/commonCommand.txt b/commonCommand.txt new file mode 100644 index 00000000..aa80f12f --- /dev/null +++ b/commonCommand.txt @@ -0,0 +1,2 @@ +npm run dev +npm config set registry https://registry.npmjs.org/ diff --git a/src/app/assets/scss/views/river-detail/components/_side-bar-articles.scss b/src/app/assets/scss/views/river-detail/components/_side-bar-articles.scss index 1dce408e..da3046bc 100644 --- a/src/app/assets/scss/views/river-detail/components/_side-bar-articles.scss +++ b/src/app/assets/scss/views/river-detail/components/_side-bar-articles.scss @@ -5,13 +5,10 @@ align-items: center; } - .sidebar-article { + .sidebar-title { &:hover { cursor: pointer; - h5, - p { - text-decoration: underline; - } + text-decoration: underline; } .article-thumb { diff --git a/src/app/views/river-detail/components/main-tab/components/recent-alerts/components/side-bar-articles.vue b/src/app/views/river-detail/components/main-tab/components/recent-alerts/components/side-bar-articles.vue index b9f132bf..17c9498a 100644 --- a/src/app/views/river-detail/components/main-tab/components/recent-alerts/components/side-bar-articles.vue +++ b/src/app/views/river-detail/components/main-tab/components/recent-alerts/components/side-bar-articles.vue @@ -24,9 +24,8 @@
-

+

+
+ See More + +
From bc269c1689c1c4f2f9ef511c24c85d6575c971ee Mon Sep 17 00:00:00 2001 From: Eric Jones Date: Mon, 25 Jan 2021 11:50:54 -0800 Subject: [PATCH 04/14] ready for review --- .../components/side-bar-articles.vue | 21 +++++-------------- .../components/side-bar-projects.vue | 3 +++ 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/src/app/views/river-detail/components/main-tab/components/recent-alerts/components/side-bar-articles.vue b/src/app/views/river-detail/components/main-tab/components/recent-alerts/components/side-bar-articles.vue index 17c9498a..a224d2fd 100644 --- a/src/app/views/river-detail/components/main-tab/components/recent-alerts/components/side-bar-articles.vue +++ b/src/app/views/river-detail/components/main-tab/components/recent-alerts/components/side-bar-articles.vue @@ -54,20 +54,9 @@ class="abstract-content" v-html="article.abstract" /> - See More - - + + Read More +
@@ -105,8 +94,8 @@ export default { } return null }, - readArticle (article) { - this.goToLink(this.formatLinkUrl(`content/Article/view/article_id/${article.id}/`)) + articleUrl (article) { + return `/content/Article/view/article_id/${article.id}/` } } } diff --git a/src/app/views/river-detail/components/main-tab/components/recent-alerts/components/side-bar-projects.vue b/src/app/views/river-detail/components/main-tab/components/recent-alerts/components/side-bar-projects.vue index 71d9ee51..703abd9a 100644 --- a/src/app/views/river-detail/components/main-tab/components/recent-alerts/components/side-bar-projects.vue +++ b/src/app/views/river-detail/components/main-tab/components/recent-alerts/components/side-bar-projects.vue @@ -28,6 +28,9 @@

+ + Read More + From a1d07b4548594d79136fe87dbc26ed7b77d153b3 Mon Sep 17 00:00:00 2001 From: Eric Jones Date: Mon, 1 Feb 2021 06:33:48 -0800 Subject: [PATCH 05/14] Reverse River Detail River & Reach Font Sizes #1924 --- .../assets/scss/components/_article-card.scss | 11 +++++++++ .../rapids-section/components/rapid-item.vue | 1 + .../components/side-bar-articles.vue | 17 ++++++++++---- .../components/side-bar-projects.vue | 23 +++++++++++++++---- src/app/views/river-detail/river-detail.vue | 15 +++--------- 5 files changed, 46 insertions(+), 21 deletions(-) diff --git a/src/app/assets/scss/components/_article-card.scss b/src/app/assets/scss/components/_article-card.scss index bd0a42ea..3b9d349d 100644 --- a/src/app/assets/scss/components/_article-card.scss +++ b/src/app/assets/scss/components/_article-card.scss @@ -118,4 +118,15 @@ .bx--article-card__icon--action svg { fill: $carbon--gray-70; //$disabled-02 for gray 90 +} + +.abstract-content { + p { + display: inline; + } +} + +.read-more { + color: $ui-02; + font-weight: 200; } \ No newline at end of file diff --git a/src/app/views/river-detail/components/main-tab/components/rapids-section/components/rapid-item.vue b/src/app/views/river-detail/components/main-tab/components/rapids-section/components/rapid-item.vue index 5b68333e..e0983f94 100644 --- a/src/app/views/river-detail/components/main-tab/components/rapids-section/components/rapid-item.vue +++ b/src/app/views/river-detail/components/main-tab/components/rapids-section/components/rapid-item.vue @@ -73,6 +73,7 @@ />

200" ref="abstract" class="abstract-content" - v-html="article.abstract.slice(0, 200) + '...'" - /> + + > + + + ... Read More + +
- - Read More - + +
+