Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
aisbf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
aisbf
Commits
feef6d57
Commit
feef6d57
authored
May 10, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(license): add frontend headers to Studio files
parent
4130d241
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
75 additions
and
0 deletions
+75
-0
studio.css
static/dashboard/studio.css
+16
-0
studio.js
static/dashboard/studio.js
+16
-0
studio.html
templates/dashboard/studio.html
+16
-0
test_license_headers.py
tests/test_license_headers.py
+27
-0
No files found.
static/dashboard/studio.css
View file @
feef6d57
/*
* Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
.studio-shell
{
--studio-border
:
color-mix
(
in
srgb
,
var
(
--color-border
)
70%
,
transparent
);
--studio-accent-soft
:
color-mix
(
in
srgb
,
var
(
--color-primary
)
18%
,
var
(
--bg-panel
));
...
...
static/dashboard/studio.js
View file @
feef6d57
/*
* Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
(
function
()
{
var
bootstrapEl
=
document
.
getElementById
(
"studio-bootstrap"
);
var
diagnosticsEl
=
document
.
getElementById
(
"studio-diagnostics"
);
...
...
templates/dashboard/studio.html
View file @
feef6d57
<!--
Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
{% extends "base.html" %}
{% block title %}Studio - AISBF Dashboard{% endblock %}
...
...
tests/test_license_headers.py
View file @
feef6d57
...
...
@@ -23,6 +23,18 @@ EXPECTED_HEADER_SNIPPETS = (
'You should have received a copy of the GNU General Public License'
,
)
TASK_2_STUDIO_FRONTEND_TARGETS
=
(
Path
(
"templates/dashboard/studio.html"
),
Path
(
"static/dashboard/studio.js"
),
Path
(
"static/dashboard/studio.css"
),
)
EXPECTED_TASK_2_STUDIO_FRONTEND_TARGETS
=
(
Path
(
"templates/dashboard/studio.html"
),
Path
(
"static/dashboard/studio.js"
),
Path
(
"static/dashboard/studio.css"
),
)
def
_read_top_level_docstring
(
path
:
Path
)
->
str
:
content
=
path
.
read_text
(
encoding
=
"utf-8"
)
...
...
@@ -46,3 +58,18 @@ def test_task_1_studio_python_files_use_aisbf_gpl_docstring_header_convention():
assert
header
.
startswith
(
'
\n
'
),
relative_path
.
as_posix
()
for
snippet
in
EXPECTED_HEADER_SNIPPETS
:
assert
snippet
in
header
,
f
"{relative_path.as_posix()}: missing {snippet!r}"
def
test_task_2_header_test_targets_only_the_planned_studio_frontend_files
():
assert
TASK_2_STUDIO_FRONTEND_TARGETS
==
EXPECTED_TASK_2_STUDIO_FRONTEND_TARGETS
def
test_task_2_studio_frontend_files_use_aisbf_gpl_comment_header_convention
():
repo_root
=
Path
(
__file__
)
.
resolve
()
.
parents
[
1
]
for
relative_path
in
TASK_2_STUDIO_FRONTEND_TARGETS
:
content
=
(
repo_root
/
relative_path
)
.
read_text
(
encoding
=
"utf-8"
)
header
=
content
[:
700
]
assert
"Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>"
in
header
,
relative_path
.
as_posix
()
assert
"GNU General Public License"
in
header
,
relative_path
.
as_posix
()
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