Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Papermerge.Js
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Jonas Leder
Papermerge.Js
Commits
253c5a56
Commit
253c5a56
authored
3 years ago
by
Eugen Ciur
Browse files
Options
Downloads
Patches
Plain Diff
Add application loader indicator.
parent
6cd0b094
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/app.js
+19
-0
19 additions, 0 deletions
app/app.js
app/index.html
+57
-0
57 additions, 0 deletions
app/index.html
with
76 additions
and
0 deletions
app/app.js
+
19
−
0
View file @
253c5a56
...
@@ -4,10 +4,29 @@ import loadInitializers from 'ember-load-initializers';
...
@@ -4,10 +4,29 @@ import loadInitializers from 'ember-load-initializers';
import
config
from
'
papermerge/config/environment
'
;
import
config
from
'
papermerge/config/environment
'
;
import
'
bootstrap
'
;
import
'
bootstrap
'
;
export
default
class
App
extends
Application
{
export
default
class
App
extends
Application
{
modulePrefix
=
config
.
modulePrefix
;
modulePrefix
=
config
.
modulePrefix
;
podModulePrefix
=
config
.
podModulePrefix
;
podModulePrefix
=
config
.
podModulePrefix
;
Resolver
=
Resolver
;
Resolver
=
Resolver
;
ready
()
{
/*
Hide rotating spinner when application finished loading and it is ready
Initial index.html has as background a rotating spinner which
indicates that application is loading:
<div class="loading">
<div class="loader"></div>
</div>
*/
let
divs
=
document
.
getElementsByClassName
(
'
loading
'
);
if
(
divs
.
length
>
0
)
{
divs
[
0
].
style
.
display
=
'
None
'
;
}
}
}
}
loadInitializers
(
App
,
config
.
modulePrefix
);
loadInitializers
(
App
,
config
.
modulePrefix
);
This diff is collapsed.
Click to expand it.
app/index.html
+
57
−
0
View file @
253c5a56
...
@@ -12,10 +12,67 @@
...
@@ -12,10 +12,67 @@
<link
integrity=
""
rel=
"stylesheet"
href=
"{{rootURL}}assets/vendor.css"
>
<link
integrity=
""
rel=
"stylesheet"
href=
"{{rootURL}}assets/vendor.css"
>
<link
integrity=
""
rel=
"stylesheet"
href=
"{{rootURL}}assets/papermerge.css"
>
<link
integrity=
""
rel=
"stylesheet"
href=
"{{rootURL}}assets/papermerge.css"
>
<link
rel=
"shortcut icon"
type=
"image/png"
href=
"{{rootURL}}assets/favicon.ico"
/>
<link
rel=
"shortcut icon"
type=
"image/png"
href=
"{{rootURL}}assets/favicon.ico"
/>
<style>
.loading
{
position
:
fixed
;
left
:
0px
;
top
:
0px
;
width
:
100%
;
height
:
100%
;
z-index
:
9999999999
;
overflow
:
hidden
;
background
:
#e9ecef
;
}
.loader
{
left
:
50%
;
margin-left
:
-4em
;
font-size
:
10px
;
border-top
:
.8em
solid
rgba
(
218
,
219
,
223
,
0.3
);
border-right
:
.8em
solid
rgba
(
218
,
219
,
223
,
0.3
);
border-bottom
:
.8em
solid
rgba
(
218
,
219
,
223
,
0.3
);
border-left
:
.8em
solid
rgba
(
75
,
179
,
241
,
1
);
-webkit-animation
:
load8
1.1s
infinite
linear
;
animation
:
load8
1.1s
infinite
linear
;
}
.loader
,
.loader
:after
{
border-radius
:
50%
;
width
:
8em
;
height
:
8em
;
display
:
block
;
position
:
absolute
;
top
:
50%
;
margin-top
:
-4.05em
;
}
@-webkit-keyframes
load8
{
0
%
{
-webkit-transform
:
rotate
(
0deg
);
transform
:
rotate
(
0deg
);
}
100
%
{
-webkit-transform
:
rotate
(
360deg
);
transform
:
rotate
(
360deg
);
}
}
@keyframes
load8
{
0
%
{
-webkit-transform
:
rotate
(
0deg
);
transform
:
rotate
(
0deg
);
}
100
%
{
-webkit-transform
:
rotate
(
360deg
);
transform
:
rotate
(
360deg
);
}
}
</style>
{{content-for "head-footer"}}
{{content-for "head-footer"}}
</head>
</head>
<body>
<body>
<div
class=
"loading"
>
<div
class=
"loader"
></div>
</div>
{{content-for "body"}}
{{content-for "body"}}
<script
src=
"{{rootURL}}assets/vendor.js"
></script>
<script
src=
"{{rootURL}}assets/vendor.js"
></script>
...
...
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