Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ff2balex
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lex gaMe
ff2balex
Commits
aecc6915
Commit
aecc6915
authored
3 months ago
by
Lucie Bader
Browse files
Options
Downloads
Patches
Plain Diff
Correction mode beug/prod
parent
00a20e22
No related branches found
No related tags found
1 merge request
!8
Test final
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
manifest.json
+0
-11
0 additions, 11 deletions
manifest.json
src/utils/logger.js
+7
-2
7 additions, 2 deletions
src/utils/logger.js
src/utils/stats.js
+2
-1
2 additions, 1 deletion
src/utils/stats.js
src/workers/pyodide_worker.js
+1
-0
1 addition, 0 deletions
src/workers/pyodide_worker.js
with
10 additions
and
14 deletions
manifest.json
+
0
−
11
View file @
aecc6915
...
...
@@ -38,11 +38,6 @@
"default_title"
:
"ff2BaLex"
},
"options_ui"
:
{
"page"
:
"src/options/options.html"
,
"open_in_tab"
:
false
},
"sidebar_action"
:
{
"default_title"
:
"BaLex"
,
"default_panel"
:
"src/sidebar/sidebar.html"
,
...
...
@@ -64,13 +59,7 @@
"src/utils/stats.js"
],
"css"
:
[
"src/context_menu/custom_context_menu.css"
],
"run_at"
:
"document_idle"
},
{
"matches"
:
[
"<all_urls>"
],
"js"
:
[
"src/utils/stats.js"
],
"run_at"
:
"document_end"
}
],
"web_accessible_resources"
:
[
...
...
This diff is collapsed.
Click to expand it.
src/utils/logger.js
+
7
−
2
View file @
aecc6915
/**
* Mode debug : affiche les logs dans la console
* Mode prod : masque les logs ainsi que les identifiants des lexiques
*/
const
DEBUG
=
fals
e
;
// false en prod
const
DEBUG
=
tru
e
;
// false en prod
function
log
(...
args
)
{
if
(
DEBUG
)
{
console
.
log
(...
args
);
}
}
if
(
typeof
window
!==
'
undefined
'
)
{
window
.
log
=
log
;
}
else
if
(
typeof
self
!==
'
undefined
'
)
{
self
.
log
=
log
;
}
This diff is collapsed.
Click to expand it.
src/utils/stats.js
+
2
−
1
View file @
aecc6915
(
function
()
{
if
(
window
.
hasRun
)
{
return
;
}
...
...
@@ -310,7 +311,7 @@
rect
.
setAttribute
(
"
stroke-width
"
,
"
0.5
"
);
rect
.
setAttribute
(
"
stroke-dasharray
"
,
"
200 200
"
);
rect
.
setAttribute
(
"
stroke-dashoffset
"
,
"
400
"
);
rect
.
style
.
animation
=
"
dashAnimation
8
s ease-in-out infinite
"
;
rect
.
style
.
animation
=
"
dashAnimation
6
s ease-in-out infinite
"
;
svg
.
appendChild
(
rect
);
document
.
body
.
appendChild
(
svg
);
...
...
This diff is collapsed.
Click to expand it.
src/workers/pyodide_worker.js
+
1
−
0
View file @
aecc6915
importScripts
(
"
../utils/logger.js
"
);
log
(
"
✅ pyodide_worker.js chargé avec succès !
"
);
// URL de la version Pyodide la plus récente
...
...
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