Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions 35 app/public/components/about/about.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/**
* @license
* Copyright 2019-2020 CERN and copyright holders of ALICE O2.
* See http://alice-o2.web.cern.ch/copyright for details of the copyright holders.
* All rights not expressly granted are reserved.
*
* This software is distributed under the terms of the GNU General Public
* License v3 (GPL Version 3), copied verbatim in the file "COPYING".
*
* In applying this license CERN does not waive the privileges and immunities
* granted to it by virtue of its status as an Intergovernmental Organization
* or submit itself to any jurisdiction.
*/

import { h } from '/js/src/index.js';

export default function about() {
const title = h('h3.text-primary', 'About');

return h('', [
h('.flex.bottom-20.justify-center.items-center',
h('.settings-40-primary'),
h('.inline.top-15.left-10',
title)),

h('.flex-wrap.justify-between.items-center',
h('.icon-placeholder-20-primary'),
h('.text-dark-blue.ph2', 'Icons by'),

h('a', {
target: '_blank',
href: 'https://icons8.com/',
}, 'Icons8')),
]);
}
30 changes: 0 additions & 30 deletions 30 app/public/components/common/modal.js

This file was deleted.

20 changes: 18 additions & 2 deletions 20 app/public/components/sidebar/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import { h } from '/js/src/index.js';
import { RCT } from '../../config.js';
import sidebarItem from './sidebarItem.js';
import { modal, modalIds, showModal } from '../../views/modal/modal.js';
const { pageNames } = RCT;

/**
Expand All @@ -26,6 +27,8 @@ const { pageNames } = RCT;

export default function sidebar(model) {
return h('.sidebar.p3',
modal(modalIds.about.modal),
modal(modalIds.pageSettings.modal, model),
h('.logo'),
h('.flex-column.gap-20',
h('.sidebar-section',
Expand All @@ -41,7 +44,20 @@ export default function sidebar(model) {

h('.sidebar-section',
h('.sidebar-section-title', 'Preferences'),
h('', 'UI theme'),
h('button.sidebar-item-button', {
onclick: () => showModal(modalIds.pageSettings.modal) },
h('.flex-wrap.page-title',
h('.settings-20-off-white.vertical-center'),
h('.title-text.vertical-center', 'Page settings'))),

h('', 'List of detectors'),
h('', 'Defined filters'))));
h('', 'Defined filters')),

h('.sidebar-section',
h('button.sidebar-item-button', {
onclick: () => showModal(modalIds.about.modal),
},
h('.flex-wrap.page-title',
h('.about-15-off-white.vertical-center'),
h('.title-text.vertical-center', 'About'))))));
}
8 changes: 4 additions & 4 deletions 8 app/public/components/sidebar/sidebarItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ export default function sidebarItem(model, pageName, label) {
onclick: () => model.navigation.goToDefaultPageUrl(pageName),
},
model.router.params.page === pageName
? h('div',
? h('',
h('.vertical-center',
h('.current-page',
h('.title-text-relative.hidden', label))),
h('.folder-20.vertical-center'),
h('.folder-15-off-white.vertical-center'),
h('.title-text.vertical-center', label, displayedSubPagesCount))
: h('div',
h('.folder-20.vertical-center'),
: h('',
h('.folder-15-off-white.vertical-center'),
h('.title-text.vertical-center', label, displayedSubPagesCount))),
]);
}
2 changes: 1 addition & 1 deletion 2 app/public/styles/components/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
*/

@import (less) "./modal.css";
@import (less) "./sidebar.css";
@import (less) "./sidebar.less";
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@
padding: 0;
margin: 0;
}

.sidebar-item-button {
.unset;
width: 100% !important;
}
4 changes: 4 additions & 0 deletions 4 app/public/styles/custom.less
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,7 @@
.gap-0-5 {
gap: 0.5em;
}

.unset {
all: unset !important;
}
4 changes: 4 additions & 0 deletions 4 app/public/styles/ehevi/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,7 @@
.ehevi .text-primary {
color: var(--primary);
}

.ehevi .text-dark-blue {
color: var(--dark-blue);
}
9 changes: 9 additions & 0 deletions 9 app/public/styles/images/icons/15/off-white/about.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions 9 app/public/styles/images/icons/15/off-white/folder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions 9 app/public/styles/images/icons/20/Folder.svg

This file was deleted.

9 changes: 9 additions & 0 deletions 9 app/public/styles/images/icons/20/off-white/settings.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions 51 app/public/styles/images/icons/icon-sizes.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/**
* @license
* Copyright 2019-2020 CERN and copyright holders of ALICE O2.
* See http://alice-o2.web.cern.ch/copyright for details of the copyright holders.
* All rights not expressly granted are reserved.
*
* This software is distributed under the terms of the GNU General Public
* License v3 (GPL Version 3), copied verbatim in the file "COPYING".
*
* In applying this license CERN does not waive the privileges and immunities
* granted to it by virtue of its status as an Intergovernmental Organization
* or submit itself to any jurisdiction.
*/

.icon-only-button {
width: 48px;
height: 32px;
padding: 0 !important;
display: inline-block;
position: relative;
}

.icon-10 {
width: 10px;
height: 10px;
display: inline-block;
}

.icon-15 {
width: 15px;
height: 15px;
display: inline-block;
}

.icon-20 {
width: 20px;
height: 20px;
display: inline-block;
}

.icon-40 {
width: 40px;
height: 40px;
display: inline-block;
}

.icon-90 {
width: 90px;
height: 90px;
display: inline-block;
}
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.