Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
bakhirev committed Nov 29, 2024
1 parent 787812e commit daa2181
Showing 33 changed files with 578 additions and 36 deletions.
Binary file removed build/social/tg.png
Binary file not shown.
Binary file removed build/social/vk.png
Binary file not shown.
Binary file removed build/social/vk/awesomejs.png
Binary file not shown.
Binary file removed build/social/vk/front_work.jpg
Binary file not shown.
Binary file removed build/social/vk/front_work.png
Binary file not shown.
Binary file removed build/social/vk/frontend_dev.png
Binary file not shown.
Binary file removed build/social/vk/frontend_du2.jpg
Binary file not shown.
Binary file removed build/social/vk/frontend_du2.png
Binary file not shown.
Binary file removed build/social/vk/logo.png
Binary file not shown.
Binary file removed build/social/vk/take_off_staff.jpg
Binary file not shown.
Binary file removed build/social/vk/take_off_staff.png
Binary file not shown.
Binary file removed build/social/youtube.png
Binary file not shown.
4 changes: 2 additions & 2 deletions build/static/index.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions build/static/index.js

Large diffs are not rendered by default.

Binary file added public/themes/cs/sidebar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
160 changes: 160 additions & 0 deletions public/themes/dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
body {
--theme-sidebar: #12131B;
--theme-main: #12131B;
--theme-border: #666666;
--theme-progress: #008000;
--theme-font: #CCCCCC;
--theme-accent: #008000;
}

.sidebar,
.sidebar_item,
.sidebar_item:hover,
.sidebar_item.selected,
.switch,
.switch_item,
.switch_item.selected {
background-color: var(--theme-sidebar);
}

body,
.header,
.header_filters_input,
.recommendations_card,
.page_wrapper,
.splash_screen,
.progress_bar,
.card_with_icon,
.table_cell,
.table_header_cell,
.main_wrapper_white,
.ui_kit_common,
.ui_kit_button,
.ui_kit_button:hover,
.ui_kit_tags_item,
.ui_kit_select_value,
.modal_window,
.pie_chart,
.tempo_task_commits,
.tempo_task_tag,
.tempo_task_hours,
.achievement,
.get_list_container,
.get_list,
.get_list_title {
background-color: var(--theme-main);
}

.progress_bar_line {
background-color: var(--theme-progress);
}

.header_title,
.header_filters_input,
.switch_item_title,
.sidebar_item_title,
.paginator_text,
.title,
.table_cell,
.table_header_cell,
.ui_kit_common,
.ui_kit_button,
.ui_kit_tags_item,
.ui_kit_select_value,
.ui_kit_checkbox_title,
.pie_chart_percent,
.pie_chart_text,
.tempo_author,
.tempo_task_tag,
.tempo_task_value,
.card_with_icon_value,
.description_title,
.description_text,
.description_text > span,
.description_list,
.recommendations_modal_title,
.recommendations_modal_sub_title,
.achievement_title,
.achievement_description {
color: var(--theme-font);
}

.page_wrapper,
.main_wrapper_white,
.pie_chart,
.table_row {
border-color: var(--theme-border);
}

.logo,
.sidebar_title,
.header_setting {
display: none;
}

/* Header */
.header_print {
margin-right: 0;
}

/* Sidebar */
.sidebar {
padding-top: 8px;
padding-left: 0;
border-right: 1px solid var(--theme-border);
}

.sidebar_item:hover > .sidebar_item_title,
.sidebar_item.selected > .sidebar_item_title {
text-decoration: underline;
color: var(--theme-accent);
}

/* Switch */
.switch {
width: 100%;
padding: 0;
}

.switch_item,
.switch_item.selected {
border-radius: 0;
border-bottom: 2px solid var(--theme-border);
}

.switch_item.selected {
border-color: var(--theme-accent);
}

.switch_item.selected > .switch_item_title {
font-weight: bold;
color: var(--theme-accent);
}

/* Main */
.page_wrapper_main {
padding-top: 0;
}

.card_with_icon_icon {
filter: grayscale(1);
}

.pie_chart_icon,
.pie_chart_color,
.line_chart_item {
filter: grayscale(0.3);
}

.main_wrapper_white,
.pie_chart {
border-radius: 0;
}

.ui_kit_button,
.ui_kit_select_value,
.tempo_task_tag,
.tempo_task_commits,
.tempo_task_hours {
border: 1px solid var(--theme-border);
}
139 changes: 139 additions & 0 deletions public/themes/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport"
content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, maximum-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="cleartype" content="on">
<meta name="HandheldFriendly" content="True">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="address=no">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="theme-color" content="white"/>

<meta name="defaultLanguage" content="ru">
<link rel="icon" href="../favicon.svg"/>
<link rel="apple-touch-icon" href="../logo192.png"/>

<title>Code Scoring</title>
<style>
body {
width: 100vw;
height: 100vh;
padding: 0;
margin: 0;
border: none;
overflow: hidden;
}

header {
width: 100vw;
height: 40px;
background-color: #001529;
background-image: url(./jira/header.png);
background-position: top left;
background-size: auto 100%;
background-repeat: no-repeat;
}

main {
width: 100vw;
height: calc(100vh - 40px);
overflow: hidden;
white-space: nowrap;
}

aside {
display: inline-block;
width: 220px;
height: 100%;
vertical-align: top;
background-color: #001529;
background-image: url(./jira/sidebar.png);
background-position: top left;
background-size: 100% auto;
background-repeat: no-repeat;
}

iframe {
display: inline-block;
width: calc(100vw - 220px);
height: 100%;
padding: 0;
margin: 0;
border: none;
overflow: hidden;
vertical-align: top;
}
</style>
</head>
<body>

<header id="header"></header>
<main id="main">
<aside id="sidebar"></aside><iframe
id="frame"
width="100%"
height="100%"
src="/demo/?dump=./test.txt&theme=./themes/white.css"
></iframe>
</main>

<script>
function getParametersFromString(text) {
return Object.fromEntries((text || '')
.substring(1, Infinity)
.split('&')
.map((token) => token.split('=')));
}

function getParametersFromURL() {
const parameters = {
...getParametersFromString(location.search),
...getParametersFromString(location.hash),
};
delete parameters[''];
return parameters;
}

function getStyleById(id) {
return document.getElementById(id).style;
}

function init() {
const parameters = getParametersFromURL();
const sidebar = getStyleById('sidebar');
const header = getStyleById('header');
if (parameters.sidebarImage) {
sidebar.backgroundImage = `url(${parameters.sidebarImage})`;
}
if (parameters.sidebarColor) {
sidebar.backgroundColor = `#${parameters.sidebarColor}`;
}
if (parameters.width) {
sidebar.width = `${parameters.width}px`;
getStyleById('frame').width = `calc(100vw - ${parameters.width}px)`;
}

if (parameters.headerImage) {
header.backgroundImage = `url(${parameters.headerImage})`;
}
if (parameters.headerColor) {
header.backgroundColor = `#${parameters.headerColor}`;
}
if (parameters.height) {
header.height = `${parameters.height}px`;
getStyleById('main').height = `calc(100vh - ${parameters.height}px)`;
}

if (parameters.title) {
document.title = parameters.title;
}
}

init();
</script>
</body>
</html>
Binary file added public/themes/gitlab/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/themes/gitlab/sidebar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions public/themes/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport"
content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, maximum-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="cleartype" content="on">
<meta name="HandheldFriendly" content="True">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="address=no">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="theme-color" content="white"/>

<meta name="defaultLanguage" content="ru">
<link rel="icon" href="../favicon.svg"/>
<link rel="apple-touch-icon" href="../logo192.png"/>

<title>IFrame demo</title>
<style>
body {
font-family: Verdana;
width: 100vw;
height: 100vh;
padding: 0;
margin: 0;
border: none;
overflow: hidden;
}

main {
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
text-align: center;
}

nav {
display: block;
text-align: center;
}

a {
font-weight: 100;
font-size: 14px;

display: block;
height: 42px;
width: 297px;
padding: 0 18px;
margin: 0 auto 12px;

cursor: pointer;
line-height: 42px;
text-align: center;
box-sizing: border-box;
white-space: nowrap;
vertical-align: top;
text-decoration: none;

border: 1px solid #E2E9F0;
border-radius: 4px;
color: #FFFFFF;
background-color: #1a73e8;
}
</style>
</head>
<body>

<main>
<nav>
<a
target="_blank"
href="./demo.html?sidebarImage=./jira/sidebar.png&sidebarColor=F4F5F7&width=220&headerImage=./jira/header.png&headerColor=0747A6&height=40&title=JIRA">
JIRA
</a>
<a
target="_blank"
href="./demo.html?sidebarImage=./gitlab/sidebar.png&sidebarColor=FBFAFD&width=266&height=100&headerImage=./gitlab/header.png&headerColor=171321&title=GitLab">
GitLab
</a>
<a
target="_blank"
href="./demo.html?sidebarImage=./cs/sidebar.png&sidebarColor=001529&width=200&height=0&title=CodeScoring">
CodeScoring
</a>
</nav>
</main>
</body>
</html>
Binary file added public/themes/jira/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/themes/jira/sidebar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit daa2181

Please sign in to comment.