= (args) => ;
17 |
18 | export const TextTitleBar = Template.bind({});
19 | TextTitleBar.args = TextTitleBarArgs;
20 |
21 | export const TextDescriptionTitleBar = Template.bind({});
22 | TextDescriptionTitleBar.args = TextDescriptionTitleBarArgs;
23 |
24 | export const SecondaryTitleBar = Template.bind({});
25 | SecondaryTitleBar.args = SecondaryTitleBarArgs;
26 |
27 | export const ExpandableOpenTitleBar = Template.bind({});
28 | ExpandableOpenTitleBar.args = ExpandableOpenTitleBarArgs;
29 |
30 | export const ExpandableNotOpenTitleBar = Template.bind({});
31 | ExpandableNotOpenTitleBar.args = ExpandableNotOpenTitleBarArgs;
32 |
--------------------------------------------------------------------------------
/packages/monaco-kubernetes/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Kubernetes plugin for the Monaco Editor.
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | # Monaco Kubernetes by Monokle
16 |
17 | Monaco Kubernetes is a language plugin for the Monaco editor.
18 | It extends the YAML language features with:
19 |
20 | - Enhanced Kubernetes validation with @monokle/validation.
21 | - Combine CRD and core Kubernetes JSON schemas for better autocomplete.
22 |
23 | Curious what Monaco Kubernetes can do?
24 |
25 | - Check out https://app.monokle.com to explore, validate and compare Kubernetes resources.
26 |
27 | ## Acknowledgements
28 |
29 | This project is a version that enhances [monaco-yaml](https://github.com/remcohaszing/monaco-yaml). Credits for integrating the YAML language server with Monaco go to [remcohaszing](https://github.com/remcohaszing) and other maintainers.
30 |
--------------------------------------------------------------------------------
/packages/synchronizer/src/models/user.ts:
--------------------------------------------------------------------------------
1 | import type {StorageAuthFormat, TokenType, TokenInfo} from '../handlers/storageHandlerAuth.js';
2 |
3 | export class User {
4 | private _email: string | null = null;
5 | private _token: string | null = null;
6 | private _tokenInfo: TokenInfo | null = null;
7 | private _data: StorageAuthFormat | null = null;
8 | private _isAuthenticated: boolean = false;
9 |
10 | constructor(data: StorageAuthFormat | null) {
11 | this._isAuthenticated = Boolean(data?.auth && data.auth.token.access_token);
12 |
13 | if (this._isAuthenticated) {
14 | this._email = data!.auth!.email;
15 | this._token = data!.auth!.token.access_token!;
16 | this._tokenInfo = {accessToken: this._token, tokenType: data!.auth!.token.token_type! as TokenType};
17 | this._data = data;
18 | }
19 | }
20 |
21 | get isAuthenticated() {
22 | return this._isAuthenticated;
23 | }
24 |
25 | get email() {
26 | return this._email;
27 | }
28 |
29 | get token() {
30 | return this._token;
31 | }
32 |
33 | get tokenInfo() {
34 | return this._tokenInfo;
35 | }
36 |
37 | get data() {
38 | return this._data;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------