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
schedules
Commits
35fbf8ad
Commit
35fbf8ad
authored
Nov 14, 2019
by
Zac Wood
Browse files
import saveAs
parent
812220d0
Pipeline
#5151
passed with stages
in 27 minutes and 12 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
35fbf8ad
...
@@ -21,6 +21,6 @@ build:
...
@@ -21,6 +21,6 @@ build:
entrypoint
:
[
"
"
]
entrypoint
:
[
"
"
]
script
:
script
:
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context $CI_PROJECT_DIR/schedules --dockerfile $CI_PROJECT_DIR/schedules/Dockerfile --destination $CI_REGISTRY_IMAGE
/api
:$CI_COMMIT_TAG
-
/kaniko/executor --context $CI_PROJECT_DIR/schedules --dockerfile $CI_PROJECT_DIR/schedules/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
only
:
only
:
-
tags
-
tags
schedules/Gemfile.lock
View file @
35fbf8ad
...
@@ -44,7 +44,7 @@ GEM
...
@@ -44,7 +44,7 @@ GEM
rails (>= 4.1)
rails (>= 4.1)
arel (8.0.0)
arel (8.0.0)
ast (2.4.0)
ast (2.4.0)
backport (
0.3.0
)
backport (
1.1.2
)
bindex (0.8.1)
bindex (0.8.1)
builder (3.2.3)
builder (3.2.3)
byebug (11.0.1)
byebug (11.0.1)
...
@@ -55,38 +55,32 @@ GEM
...
@@ -55,38 +55,32 @@ GEM
rack (>= 1.0.0)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
rack-test (>= 0.5.4)
xpath (>= 2.0, < 4.0)
xpath (>= 2.0, < 4.0)
childprocess (2.0.0)
childprocess (3.0.0)
rake (< 13.0)
coderay (1.1.2)
coderay (1.1.2)
concurrent-ruby (1.1.5)
concurrent-ruby (1.1.5)
crass (1.0.
4
)
crass (1.0.
5
)
erubi (1.9.0)
erubi (1.9.0)
execjs (2.7.0)
execjs (2.7.0)
ffi (1.11.1)
ffi (1.11.1)
globalid (0.4.2)
globalid (0.4.2)
activesupport (>= 4.2.0)
activesupport (>= 4.2.0)
gon (6.2.1)
actionpack (>= 3.0)
multi_json
request_store (>= 1.0)
htmlentities (4.3.4)
htmlentities (4.3.4)
httparty (0.17.1)
httparty (0.17.1)
mime-types (~> 3.0)
mime-types (~> 3.0)
multi_xml (>= 0.5.2)
multi_xml (>= 0.5.2)
i18n (1.
6
.0)
i18n (1.
7
.0)
concurrent-ruby (~> 1.0)
concurrent-ruby (~> 1.0)
icalendar (2.5.3)
icalendar (2.5.3)
ice_cube (~> 0.16)
ice_cube (~> 0.16)
ice_cube (0.16.3)
ice_cube (0.16.3)
jaro_winkler (1.5.
3
)
jaro_winkler (1.5.
4
)
jbuilder (2.9.1)
jbuilder (2.9.1)
activesupport (>= 4.2.0)
activesupport (>= 4.2.0)
kramdown (1.17.0)
listen (3.1.5)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
ruby_dep (~> 1.2)
loofah (2.3.
0
)
loofah (2.3.
1
)
crass (~> 1.0.2)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
nokogiri (>= 1.5.9)
mail (2.7.1)
mail (2.7.1)
...
@@ -95,17 +89,16 @@ GEM
...
@@ -95,17 +89,16 @@ GEM
method_source (0.9.2)
method_source (0.9.2)
mime-types (3.3)
mime-types (3.3)
mime-types-data (~> 3.2015)
mime-types-data (~> 3.2015)
mime-types-data (3.2019.09
04
)
mime-types-data (3.2019.
10
09)
mini_mime (1.0.2)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
mini_portile2 (2.4.0)
minitest (5.12.2)
minitest (5.13.0)
multi_json (1.13.1)
multi_xml (0.6.0)
multi_xml (0.6.0)
nio4r (2.5.2)
nio4r (2.5.2)
nokogiri (1.10.
4
)
nokogiri (1.10.
5
)
mini_portile2 (~> 2.4.0)
mini_portile2 (~> 2.4.0)
parallel (1.1
7
.0)
parallel (1.1
8
.0)
parser (2.6.
4.1
)
parser (2.6.
5.0
)
ast (~> 2.4.0)
ast (~> 2.4.0)
powerpack (0.1.2)
powerpack (0.1.2)
pry (0.12.2)
pry (0.12.2)
...
@@ -137,8 +130,8 @@ GEM
...
@@ -137,8 +130,8 @@ GEM
rails-dom-testing (2.0.3)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
nokogiri (>= 1.6)
rails-html-sanitizer (1.
2
.0)
rails-html-sanitizer (1.
3
.0)
loofah (~> 2.
2, >= 2.2.2
)
loofah (~> 2.
3
)
railties (5.1.6.1)
railties (5.1.6.1)
actionpack (= 5.1.6.1)
actionpack (= 5.1.6.1)
activesupport (= 5.1.6.1)
activesupport (= 5.1.6.1)
...
@@ -146,12 +139,10 @@ GEM
...
@@ -146,12 +139,10 @@ GEM
rake (>= 0.8.7)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
thor (>= 0.18.1, < 2.0)
rainbow (3.0.0)
rainbow (3.0.0)
rake (1
2.3.3
)
rake (1
3.0.0
)
rb-fsevent (0.10.3)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
rb-inotify (0.10.0)
ffi (~> 1.0)
ffi (~> 1.0)
request_store (1.4.1)
rack (>= 1.4)
reverse_markdown (1.3.0)
reverse_markdown (1.3.0)
nokogiri
nokogiri
rubocop (0.58.2)
rubocop (0.58.2)
...
@@ -164,7 +155,7 @@ GEM
...
@@ -164,7 +155,7 @@ GEM
unicode-display_width (~> 1.0, >= 1.0.1)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.10.1)
ruby-progressbar (1.10.1)
ruby_dep (1.5.0)
ruby_dep (1.5.0)
rubyzip (
1.3
.0)
rubyzip (
2.0
.0)
sass (3.7.4)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
sass-listen (4.0.0)
...
@@ -176,14 +167,15 @@ GEM
...
@@ -176,14 +167,15 @@ GEM
sprockets (>= 2.8, < 4.0)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
tilt (>= 1.1, < 3)
selenium-webdriver (3.142.4)
selenium-webdriver (3.142.6)
childprocess (>= 0.5, < 3.0)
childprocess (>= 0.5, < 4.0)
rubyzip (~> 1.2, >= 1.2.2)
rubyzip (>= 1.2.2)
solargraph (0.31.3)
solargraph (0.37.2)
backport (~> 0.3)
backport (~> 1.1)
bundler (>= 1.17.2)
htmlentities (~> 4.3, >= 4.3.4)
htmlentities (~> 4.3, >= 4.3.4)
jaro_winkler (~> 1.5)
jaro_winkler (~> 1.5)
kramdown (~> 1.16
)
nokogiri (~> 1.9, >= 1.9.1
)
parser (~> 2.3)
parser (~> 2.3)
reverse_markdown (~> 1.0, >= 1.0.5)
reverse_markdown (~> 1.0, >= 1.0.5)
rubocop (~> 0.52)
rubocop (~> 0.52)
...
@@ -236,7 +228,6 @@ DEPENDENCIES
...
@@ -236,7 +228,6 @@ DEPENDENCIES
apipie-rails
apipie-rails
byebug
byebug
capybara (~> 2.13)
capybara (~> 2.13)
gon
httparty
httparty
icalendar
icalendar
jbuilder (~> 2.5)
jbuilder (~> 2.5)
...
...
schedules/app/javascript/src/controllers/schedule_controller.js
View file @
35fbf8ad
import
{
Controller
}
from
'
stimulus
'
import
{
Controller
}
from
'
stimulus
'
import
{
getCart
}
from
'
src/cart
'
import
{
getCart
}
from
'
src/cart
'
import
{
buildUrl
,
downloadIcal
}
from
'
../utils
'
import
{
buildUrl
,
downloadIcal
}
from
'
../utils
'
import
export
default
class
extends
Controller
{
export
default
class
extends
Controller
{
static
targets
=
[
'
schedule
'
,
'
loader
'
,
'
export
'
,
'
modal
'
]
static
targets
=
[
'
schedule
'
,
'
loader
'
,
'
export
'
,
'
modal
'
]
...
...
schedules/app/javascript/src/utils.js
View file @
35fbf8ad
import
{
saveAs
}
from
'
file-saver
'
export
function
buildUrl
(
url
,
protocol
=
window
.
location
.
protocol
)
{
export
function
buildUrl
(
url
,
protocol
=
window
.
location
.
protocol
)
{
const
port
=
window
.
location
.
port
===
'
3000
'
?
'
:3000
'
:
''
const
port
=
window
.
location
.
port
===
'
3000
'
?
'
:3000
'
:
''
return
`
${
protocol
}
//
${
window
.
location
.
hostname
}${
port
}${
url
}
`
return
`
${
protocol
}
//
${
window
.
location
.
hostname
}${
port
}${
url
}
`
...
...
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