-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AG-11949 - Add license setup page (#1864)
* AG-11949 - Make License setup work on charts Move Code and Snippet components to shared folder * AG-11949 - Remove ag-website-shared from ignored * AG-11949 - Update charts dependencies and snippets for license setup * AG-11949 - Update useLicenseData with grid update * AG-11949 - Show charts related errors * AG-11949 - Add right hand menu for license setup Remove hiding menus based on commented out code - not used anymore. * AG-11949 - Don't set license data from url Don't need to configure anything on charts licenses * AG-11949 - Fix formatting * AG-11949 - Update license setup copy * AG-11949 - Add root eslint config for ag-website-shared Need to update, after eslint 9.x upgrade * AG-11949 - Add expiry back in to license setup
- Loading branch information
Showing
33 changed files
with
683 additions
and
307 deletions.
There are no files selected for viewing
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,3 +1,2 @@ | ||
__diff_output__ | ||
/external/ag-website-shared/ | ||
|
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import pluginJs from '@eslint/js'; | ||
// TODO: Add after eslint upgrade to v9.x | ||
// import eslintImportX from 'eslint-plugin-import-x'; | ||
import globals from 'globals'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default [ | ||
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } }, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
{ | ||
plugins: { | ||
// 'import-x': eslintImportX | ||
}, | ||
}, | ||
{ | ||
ignores: ['node_modules/', 'dist/'], | ||
}, | ||
{ | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/consistent-type-imports': [ | ||
'error', | ||
{ | ||
prefer: 'type-imports', | ||
fixStyle: 'separate-type-imports', | ||
}, | ||
], | ||
'import-x/consistent-type-specifier-style': 'error', | ||
'@typescript-eslint/no-this-alias': 'off', | ||
'no-restricted-imports': [ | ||
'error', | ||
{ | ||
patterns: ['community-modules/*', 'enterprise-modules/*', '*/main'], | ||
}, | ||
], | ||
}, | ||
}, | ||
]; |
111 changes: 111 additions & 0 deletions
111
external/ag-website-shared/src/components/code/Code.module.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,111 @@ | ||
@use 'design-system' as *; | ||
|
||
.clipboardButtonOuter { | ||
display: flex; | ||
align-items: center; | ||
position: absolute; | ||
top: $spacing-size-1; | ||
right: $spacing-size-1; | ||
height: $spacing-size-8; | ||
opacity: 0; | ||
z-index: 2; | ||
overflow: hidden; | ||
transition: opacity 0.33s ease-in-out; | ||
|
||
pre:hover & { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
.clipboardButton, | ||
.clipboardButtonCopied { | ||
display: flex; | ||
align-items: center; | ||
height: $spacing-size-8; | ||
background-color: var(--color-bg-primary); | ||
border-top: 1px solid var(--color-border-primary); | ||
border-bottom: 1px solid var(--color-border-primary); | ||
|
||
#{$selector-darkmode} & { | ||
background-color: var(--color-code-background); | ||
} | ||
} | ||
|
||
.clipboardButton { | ||
width: calc(#{$spacing-size-8} - var(--radius-sm)); | ||
border-top-right-radius: var(--radius-sm); | ||
border-bottom-right-radius: var(--radius-sm); | ||
border-right: 1px solid var(--color-border-primary); | ||
cursor: pointer; | ||
transition: background-color $transition-default-timing; | ||
|
||
svg { | ||
--color-icon: var(--color-util-gray-500); | ||
|
||
position: relative; | ||
left: -2px; | ||
transition: fill $transition-default-timing; | ||
} | ||
|
||
&:hover svg { | ||
--color-icon: var(--color-util-brand-400); | ||
|
||
#{$selector-darkmode} & { | ||
--color-icon: var(--color-link-hover); | ||
} | ||
} | ||
} | ||
|
||
.clipboardButtonCopiedOuter { | ||
overflow: hidden; | ||
} | ||
|
||
.clipboardButtonCopied { | ||
font-size: var(--text-fs-sm); | ||
font-weight: var(--text-semibold); | ||
padding-left: $spacing-size-2; | ||
padding-right: $spacing-size-2; | ||
border-top-left-radius: var(--radius-sm); | ||
border-bottom-left-radius: var(--radius-sm); | ||
border-left: 1px solid var(--color-border-primary); | ||
color: var(--color-fg-white); | ||
transform: translateX(calc(100% - var(--radius-sm))); | ||
transition: | ||
transform $transition-default-timing, | ||
background-color $transition-default-timing, | ||
color $transition-default-timing; | ||
cursor: pointer; | ||
|
||
#{$selector-darkmode} & { | ||
color: var(--color-bg-primary); | ||
} | ||
} | ||
|
||
.hasCopied { | ||
opacity: 1; | ||
|
||
.clipboardButton { | ||
background-color: var(--color-util-gray-700); | ||
} | ||
|
||
.clipboardButton svg { | ||
--color-icon: var(--color-fg-white); | ||
|
||
#{$selector-darkmode} & { | ||
--color-icon: var(--color-bg-primary); | ||
} | ||
} | ||
|
||
.clipboardButton:hover svg { | ||
--color-icon: var(--color-fg-white); | ||
|
||
#{$selector-darkmode} & { | ||
--color-icon: var(--color-bg-primary); | ||
} | ||
} | ||
|
||
.clipboardButtonCopied { | ||
transform: translateX(0); | ||
background-color: var(--color-util-gray-700); | ||
} | ||
} |
File renamed without changes.
21 changes: 0 additions & 21 deletions
21
external/ag-website-shared/src/components/license-setup/components/LicenseSetup.astro
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
Oops, something went wrong.