This repository was archived by the owner on Jan 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
🧹 Code cleanup #139
Merged
Merged
🧹 Code cleanup #139
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
b7eb1d4
Remove loginDiv
Ehevi e7ab455
Remove unused file
Ehevi 5ffef96
Remove get date method
Ehevi ac5953b
Rename dataRespond to dataResponse
Ehevi b5618e6
Cleanup :broom:
Ehevi 73b2280
Cleanup :broom:
Ehevi e0fa056
Cleanup :broom:
Ehevi 7bdbe5b
User panel file cleanup
Ehevi c6610c0
Some more cleanup :broom:
Ehevi 9ef645e
Cleanup :broom:
Ehevi cc71be0
Model refactor :wrench:
Ehevi eaac1ec
Use messagePanel
Ehevi 044108b
Cleanup
Ehevi 43d843c
Cleanup :broom:
Ehevi 7fd428e
Cleanup :broom:
Ehevi fa7b2b0
Await for async calls
Ehevi b6e8d2d
Cleanup :broom:
Ehevi c533fb8
Cleanup :broom:
Ehevi 389f650
Rename icons to remove the whitespaces
Ehevi 35b98c2
Address review comments
Ehevi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| /** | ||
| * @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 messagePanel(imageClass, reason, message, buttons, notification = null) { | ||
| return h('.panel.abs-center', | ||
| h(`.${imageClass}`), | ||
| h('h3', reason), | ||
| h('h5', message), | ||
| notification ? notification : '', | ||
| h('.flex-wrap.justify-center', buttons)); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| /** | ||
| * @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 { Observable } from '/js/src/index.js'; | ||
|
|
||
| export default class ServiceUnavailable extends Observable { | ||
| constructor(model) { | ||
| super(); | ||
| this.model = model; | ||
| this.messageFieldId = 'serviceUnavailableMessageFieldID'; | ||
| } | ||
|
|
||
| showResult(result) { | ||
| const field = document.getElementById(this.messageFieldId); | ||
| if (field) { | ||
| field.innerText = result.message ? result.message : result; | ||
| field.classList.remove('notification-close'); | ||
| field.classList.add('notification-open'); | ||
| } | ||
| } | ||
|
|
||
| hideResult() { | ||
| const field = document.getElementById(this.messageFieldId); | ||
| if (field) { | ||
| field.innerText = ''; | ||
| field.classList.add('notification-close'); | ||
| field.classList.remove('notification-open'); | ||
| } | ||
| } | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.