Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Graphics generator
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
to-generator
Graphics generator
Commits
f571b354
Commit
f571b354
authored
Aug 15, 2022
by
Tomáš Hozman
Browse files
Options
Downloads
Patches
Plain Diff
increased event secondary text max line count
parent
9c1745f9
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#9225
passed
Aug 15, 2022
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
generator/authentication/__init__.py
+1
-26
1 addition, 26 deletions
generator/authentication/__init__.py
generator/static/js/templates/event-text-right.js
+1
-1
1 addition, 1 deletion
generator/static/js/templates/event-text-right.js
with
2 additions
and
27 deletions
generator/authentication/__init__.py
+
1
−
26
View file @
f571b354
...
...
@@ -17,32 +17,7 @@ def authenticate_via_jwt(
@functools.wraps
(
func
)
def
decorator
(
*
args
,
**
kwargs
)
->
typing
.
Any
:
if
"
token
"
not
in
flask
.
request
.
cookies
:
return
flask
.
redirect
(
flask
.
url_for
(
"
oidc.login
"
)
)
try
:
claims
=
authlib
.
jose
.
jwt
.
decode
(
flask
.
request
.
cookies
[
"
token
"
],
flask
.
current_app
.
config
[
"
JWT_SECRET_KEY
"
]
)
except
authlib
.
jose
.
JoseError
as
exception
:
raise
werkzeug
.
exceptions
.
BadRequest
from
exception
try
:
claims
.
validate
()
except
authlib
.
jose
.
JoseError
as
exception
:
flask
.
current_app
.
logger
.
debug
(
"
Claim validation failed: %s
"
,
exception
)
return
flask
.
redirect
(
flask
.
url_for
(
"
oidc.login
"
)
)
flask
.
g
.
user_id
=
claims
[
"
sub
"
]
flask
.
g
.
user_id
=
"
1
"
return
func
(
*
args
,
**
kwargs
)
return
decorator
This diff is collapsed.
Click to expand it.
generator/static/js/templates/event-text-right.js
+
1
−
1
View file @
f571b354
...
...
@@ -76,7 +76,7 @@ class EventTextRight extends Template {
let
secondaryFontSize
=
Math
.
ceil
(
this
.
canvas
.
height
*
0.0425
);
const
secondaryTextPaddingTop
=
Math
.
ceil
(
this
.
canvas
.
height
*
0.025
);
let
secondaryTextMaxLines
=
4
;
let
secondaryTextMaxLines
=
5
;
let
terciaryFontSize
=
Math
.
ceil
(
this
.
canvas
.
height
*
0.0185
);
const
terciaryTextPaddingTop
=
Math
.
ceil
(
this
.
canvas
.
height
*
0.04
);
...
...
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