Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
imghost
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
imghost
Commits
c002c0b5
Commit
c002c0b5
authored
7 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Improved upload API
parent
989c407b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assets/js/page_upload.js
+8
-0
8 additions, 0 deletions
assets/js/page_upload.js
assets/sass/_page_upload.sass
+54
-1
54 additions, 1 deletion
assets/sass/_page_upload.sass
with
62 additions
and
1 deletion
assets/js/page_upload.js
+
8
−
0
View file @
c002c0b5
...
@@ -30,6 +30,14 @@ element.addEventListener("change", () => {
...
@@ -30,6 +30,14 @@ element.addEventListener("change", () => {
image_title
.
placeholder
=
"
Description
"
;
image_title
.
placeholder
=
"
Description
"
;
image_container
.
appendChild
(
image_title
);
image_container
.
appendChild
(
image_title
);
const
image_progress
=
document
.
createElement
(
"
div
"
);
image_progress
.
classList
.
add
(
"
progress
"
);
const
image_progress_indeterminate
=
document
.
createElement
(
"
div
"
);
image_progress_indeterminate
.
classList
.
add
(
"
indeterminate
"
);
image_progress
.
appendChild
(
image_progress_indeterminate
);
const
image_link
=
document
.
createElement
(
"
a
"
);
const
image_link
=
document
.
createElement
(
"
a
"
);
image_link
.
classList
.
add
(
"
image
"
);
image_link
.
classList
.
add
(
"
image
"
);
const
image
=
document
.
createElement
(
"
img
"
);
const
image
=
document
.
createElement
(
"
img
"
);
...
...
This diff is collapsed.
Click to expand it.
assets/sass/_page_upload.sass
+
54
−
1
View file @
c002c0b5
...
@@ -147,6 +147,37 @@
...
@@ -147,6 +147,37 @@
&
+
.image
&
+
.image
border-top-left-radius
:
4px
border-top-left-radius
:
4px
border-top-right-radius
:
4px
border-top-right-radius
:
4px
.progress
position
:
absolute
height
:
4px
display
:
block
background-color
:
rgba
(
255
,
193
,
7
,
0
.2
)
overflow
:
hidden
transition
:
opacity
400ms
bottom
:
0
left
:
0
right
:
0
.indeterminate
background-color
:
rgba
(
255
,
193
,
7
,
0
.8
)
&
::before
content
:
''
position
:
absolute
background-color
:
inherit
top
:
0
left
:
0
bottom
:
0
will-change
:
left
,
right
animation
:
indeterminate
4
.2s
cubic-bezier
(
0
.65
,
0
.815
,
0
.735
,
0
.395
)
infinite
&
::after
content
:
''
position
:
absolute
background-color
:
inherit
top
:
0
left
:
0
bottom
:
0
will-change
:
left
,
right
animation
:
indeterminate-short
4
.2s
cubic-bezier
(
0
.165
,
0
.84
,
0
.44
,
1
)
infinite
animation-delay
:
2
.25s
.image
.image
background
:
#000
background
:
#000
display
:
flex
display
:
flex
...
@@ -177,4 +208,26 @@
...
@@ -177,4 +208,26 @@
&
.submitted
.container.centered
&
.submitted
.container.centered
display
:
none
display
:
none
&
:not
(
.submitted
)
.uploading.images
&
:not
(
.submitted
)
.uploading.images
display
:
none
display
:
none
\ No newline at end of file
@keyframes
indeterminate
0
%
left
:
-35%
right
:
100%
60
%
left
:
100%
right
:
-90%
100
%
left
:
100%
right
:
-90%
@keyframes
indeterminate-short
0
%
left
:
-200%
right
:
100%
60
%
left
:
107%
right
:
-8%
100
%
left
:
107%
right
:
-8%
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment