forked from sakaiproject/sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SAK-48362 roster. Add profile connections buttons back (sakaiproject#…
- Loading branch information
1 parent
28ac3d7
commit 241fe97
Showing
19 changed files
with
334 additions
and
163 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
library/src/skins/default/src/sass/modules/button/_base.scss
This file contains 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,16 @@ | ||
html { | ||
--sui-btn-color: var(--button-text-color); | ||
--sui-btn-bg-color: var(--button-background); | ||
--sui-btn-hover-bg-color: var(--button-hover-background); | ||
--sui-btn-border-width: #{$btn-border-width}; | ||
--sui-btn-border-radius: #{$btn-border-radius}; | ||
--sui-btn-border-color: var(--button-border-color); | ||
--sui-btn-hover-border-color: var(--button-hover-border-color); | ||
--sui-btn-padding: #{$btn-padding-y} #{$btn-padding-x}; | ||
--sui-btn-box-shadow: var(--button-shadow); | ||
--sui-btn-hover-box-shadow: var(--button-hover-shadow); | ||
--sui-btn-font-family: #{$btn-font-family}; | ||
--sui-btn-font-size: #{$btn-font-size}; | ||
--sui-btn-line-height: #{$btn-line-height}; | ||
--sui-btn-font-weight: #{$btn-font-weight}; | ||
} |
6 changes: 0 additions & 6 deletions
6
library/src/skins/default/src/sass/modules/tool/button/_base.scss
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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 |
---|---|---|
@@ -1,4 +1,11 @@ | ||
accept_connection=Accept Connection | ||
connect=Connect | ||
connection=Connection | ||
connection_requested=Connection requested | ||
email=Email | ||
ignore_connection=Ignore Connection | ||
loading=Loading .... | ||
name_pronunciation=Name Pronunciation | ||
remove_connection=Remove Connection | ||
student_number=Student Number | ||
view_full_profile=View full profile |
This file contains 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
|
||
## temp folders | ||
/.tmp/ | ||
bundles | ||
/coverage/ | ||
coverage/ | ||
/storybook-static/ | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
1 change: 1 addition & 0 deletions
1
webcomponents/tool/src/main/frontend/packages/sakai-element/index.js
This file contains 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export { SakaiElement } from './src/SakaiElement.js'; | ||
export { SakaiShadowElement } from './src/SakaiShadowElement.js'; |
This file contains 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
70 changes: 70 additions & 0 deletions
70
webcomponents/tool/src/main/frontend/packages/sakai-element/src/SakaiShadowElement.js
This file contains 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,70 @@ | ||
import { css, LitElement } from "lit"; | ||
import { loadProperties, tr } from "@sakai-ui/sakai-i18n"; | ||
|
||
export class SakaiShadowElement extends LitElement { | ||
|
||
/** | ||
* Convenience wrapper for sakai-18n.tr. | ||
* | ||
* Example: | ||
* | ||
* confirm_coolness=This is {} cool | ||
* let translated = mySakaiElementSubclass.tr("confirm_coolness", ["really"]); | ||
* | ||
* @param {string} key The i18n key we want to translate | ||
* @params {(string[]|Object)} options This can either be an array of replacement strings, or an object | ||
* which contains token names to values, as well as options like debug: true. | ||
* @param {boolean} [forceBundle=this.bundle] The bundle to use in preference to this.bundle | ||
*/ | ||
tr(key, options, forceBundle) { | ||
return tr(forceBundle || this.bundle, key, options); | ||
} | ||
|
||
loadTranslations(options) { | ||
|
||
if (typeof options === "string") { | ||
this.bundle = options; | ||
} else { | ||
this.bundle = options.bundle; | ||
} | ||
|
||
// Pass the call on to the imported function | ||
return loadProperties(options); | ||
} | ||
|
||
setSetting(component, name, value) { | ||
|
||
const currentString = localStorage.getItem(`${component}-settings`); | ||
const settings = currentString ? JSON.parse(currentString) : {}; | ||
settings[name] = value; | ||
localStorage.setItem(`${component}-settings`, JSON.stringify(settings)); | ||
} | ||
|
||
getSetting(component, name) { | ||
|
||
const currentString = localStorage.getItem(`${component}-settings`); | ||
return !currentString ? null : JSON.parse(currentString)[name]; | ||
} | ||
|
||
static styles = css` | ||
button { | ||
color: var(--sui-btn-color); | ||
background: var(--sui-btn-bg-color); | ||
padding: var(--sui-btn-padding); | ||
border-radius: var(--sui-btn-border-radius); | ||
border-width: var(--sui-btn-border-width); | ||
border-color: var(--sui-btn-border-color); | ||
box-shadow: var(--sui-btn-box-shadow); | ||
font-family: var(--sui-btn-font-family); | ||
font-size: var(--sui-btn-font-size); | ||
font-weight: var(--sui-btn-font-weight); | ||
line-height: var(--sui-btn-line-height); | ||
} | ||
button:hover { | ||
background: var(--sui-btn-hover-bg-color); | ||
border-color: var(--sui-btn-hover-border-color); | ||
box-shadow: var(--sui-btn-hover-box-shadow); | ||
} | ||
`; | ||
} |
Oops, something went wrong.