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
ORCT-97 Add link to the BK fill page #134
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
01f44ee
ORCT-97-fills
Ehevi 81b1a0c
Change share link icon
Ehevi 59d415d
Make copyLinkButton a separate component
Ehevi cfc5f43
Snackbar
Ehevi 977a334
Flex row gap
Ehevi 6b8c371
Link icon
Ehevi fd619df
Rename PrimaryModel
Ehevi 747ed91
Use default rows on site parameter
Ehevi 27d69cf
Data access
Ehevi dd01ca0
indexChip cleanup :broom:
Ehevi 91e2327
Apply eslint rules
Ehevi 635128b
Rename Navigation Model
Ehevi 8ce0b55
Fix
Ehevi c875101
Fix flags index chips
Ehevi 618b3c4
Test
Ehevi 510b304
Make title model independent
Ehevi e03a079
Move title to the components catalog
Ehevi 4415e03
Clear filters cleanup
Ehevi 027eadd
Use navigation model
Ehevi b95d3c7
Address review comments
Ehevi d68d96e
Address review comments
Ehevi 7cc122c
Apply review comments
Ehevi d793c65
Address review comments
Ehevi d7750ba
Mode name
Ehevi f238231
Address review comments
Ehevi d692dcc
Fix model mode name
Ehevi 90c6d6f
Fix waiting panel bug :bug:
Ehevi 5a7b6ba
Remove unused files
Ehevi 0c9a07a
IndexChip cleanup :broom:
Ehevi b3ed409
Address review comments
Ehevi 86768da
Apply eslint rules
Ehevi 32df041
Address review comments
Ehevi 62cb31c
Change noRunNumbers variable name
Ehevi 9cd038a
Address review comments
Ehevi 221cdb8
JS docs
Ehevi 00be7ff
Address review comments
Ehevi 579f67b
Address review comments
Ehevi 66dc725
Address review comments
Ehevi 2b14512
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| /** | ||
| * @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. | ||
| */ | ||
|
|
||
| const { bookkeeping } = require('./bookkeeping.js'); | ||
|
|
||
| module.exports = { | ||
| bookkeeping, | ||
| }; |
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,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. | ||
| */ | ||
|
|
||
| import { h } from '/js/src/index.js'; | ||
| import snackBar from '../snackBars/snackBar.js'; | ||
|
|
||
| /** | ||
| * @param {string} url - url that will be returned to the user | ||
| * @returns a button that once clicked will add the url to the user's clipboard | ||
| */ | ||
|
|
||
| export default function copyLinkButton(url) { | ||
xsalonx marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| const snackBarId = `${url}-copied`; | ||
| const thisButtonId = `${url}-copy-link-button`; | ||
| const thisButtonContentId = `${thisButtonId}-content`; | ||
|
|
||
| return h('button.btn.btn-secondary.icon-only-button', { | ||
| id: thisButtonId, | ||
| onclick: () => { | ||
| navigator.clipboard.writeText(url) | ||
| .then(() => { | ||
| const snackbar = document.getElementById(snackBarId); | ||
| const thisButton = document.getElementById(thisButtonId); | ||
| const thisButtonContent = document.getElementById(thisButtonContentId); | ||
| snackbar.style.display = 'flex'; | ||
|
|
||
| document.addEventListener('click', (event) => { | ||
| if (thisButton != event.target && thisButtonContent != event.target) { | ||
| snackbar.style.display = 'none'; | ||
| } | ||
| }); | ||
| }) | ||
| .catch((e) => { | ||
| snackBar(e, snackBarId); | ||
| }); | ||
| }, | ||
| }, h('.link-20-primary.abs-center', { | ||
| id: thisButtonContentId, | ||
| }), snackBar(h('.flex-row.items-center.gap-0-5', h('.done-10-primary'), 'Copied!'), snackBarId)); | ||
| } | ||
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,26 @@ | ||
| /** | ||
| * @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 snackBar(message, id = null) { | ||
| const snackBarId = id ? id : `snackbar-${message}`; | ||
| return h('button.snackbar', { | ||
| id: snackBarId, | ||
| onclick: () => { | ||
| const snackbar = document.getElementById(snackBarId); | ||
| snackbar.style.display = 'none'; | ||
| }, | ||
| }, message); | ||
| } |
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
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.