Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-web
Commits
51ee81e9
Commit
51ee81e9
authored
Jun 07, 2018
by
Andrew Hrdy
Browse files
Using yarn included in the docker image instead of npm installing it.
parent
ad9851c1
Pipeline
#2509
passed with stage
in 1 minute and 46 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
51ee81e9
...
...
@@ -9,8 +9,7 @@ build:
variables
:
API_GET_FACILITIES
:
"
'https://api.srct.gmu.edu/whatsopen/v2/facilities/'"
script
:
-
npm install -g yarn
-
yarn install
-
yarn
-
CI=false API_GET_FACILITIES=$API_GET_FACILITIES npm run build
artifacts
:
paths
:
...
...
@@ -21,8 +20,7 @@ build_shopmason:
variables
:
API_GET_FACILITIES
:
"
'https://api.srct.gmu.edu/whatsopen/v2/facilities/?facility_classifier=shopmason'"
script
:
-
npm install -g yarn
-
yarn install
-
yarn
-
CI=false API_GET_FACILITIES=$API_GET_FACILITIES npm run build
artifacts
:
paths
:
...
...
src/components/Alert.js
View file @
51ee81e9
...
...
@@ -29,7 +29,7 @@ const Alert = ({alert}) => {
return
(
<
span
className
=
{
'
alert-message
'
}
>
{
alert
.
message
.
substring
(
0
,
links
.
index
)}
<
a
href
=
{
links
[
0
]}
className
=
{
'
alert-link
'
}
target
=
"
_blank
"
rel
=
"
noopener
"
>
{
links
[
0
]}
<
/a
>
<
a
href
=
{
links
[
0
]}
className
=
{
'
alert-link
'
}
target
=
"
_blank
"
rel
=
"
noopener
noreferrer
"
>
{
links
[
0
]}
<
/a
>
{
alert
.
message
.
substring
(
links
.
index
+
links
[
0
].
length
)}
<
/span
>
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment