@pb33f/cowboy-components 0.5.5 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{css.worker-CTSQecos.js → css.worker-Byh--afc.js} +1 -1
- package/dist/assets/{html.worker-C1BIaUKh.js → html.worker-DArWg-Dy.js} +1 -1
- package/dist/assets/{json.worker-BCyBlh8h.js → json.worker-heCfXoJw.js} +1 -1
- package/dist/components/auth/login-button.css.d.ts +2 -0
- package/dist/components/auth/login-button.css.js +60 -0
- package/dist/components/auth/login-button.d.ts +16 -0
- package/dist/components/auth/login-button.js +87 -0
- package/dist/components/auth/login-panel.d.ts +10 -0
- package/dist/components/auth/login-panel.js +46 -0
- package/dist/components/auth/oauth-login.css.d.ts +2 -0
- package/dist/components/auth/oauth-login.css.js +107 -0
- package/dist/components/auth/oauth-login.d.ts +17 -0
- package/dist/components/auth/oauth-login.js +93 -0
- package/dist/components/electric-box/electric-box.css.d.ts +2 -0
- package/dist/components/electric-box/electric-box.css.js +23 -0
- package/dist/components/electric-box/electric-box.d.ts +37 -0
- package/dist/components/electric-box/electric-box.js +336 -0
- package/dist/components/logo-wall/logo-wall.css.d.ts +2 -0
- package/dist/components/logo-wall/logo-wall.css.js +57 -0
- package/dist/components/logo-wall/logowall.d.ts +26 -0
- package/dist/components/logo-wall/logowall.js +378 -0
- package/dist/components/model-renderer/example.js +1 -0
- package/dist/components/rodeo/rodeo-nav.css.d.ts +2 -0
- package/dist/components/rodeo/rodeo-nav.css.js +13 -0
- package/dist/components/rodeo/rodeo-nav.d.ts +6 -0
- package/dist/components/rodeo/rodeo-nav.js +31 -0
- package/dist/components/rodeo/rodeo.css.d.ts +2 -0
- package/dist/components/rodeo/rodeo.css.js +17 -0
- package/dist/components/rodeo/rodeo.d.ts +10 -0
- package/dist/components/rodeo/rodeo.js +41 -0
- package/dist/components/rodeo/roundup.d.ts +4 -0
- package/dist/components/rodeo/roundup.js +18 -0
- package/dist/components/rodeo/users.d.ts +4 -0
- package/dist/components/rodeo/users.js +17 -0
- package/dist/components/the-doctor/the-doctor.d.ts +1 -0
- package/dist/components/the-doctor/the-doctor.js +3 -0
- package/dist/controllers/auth.d.ts +14 -0
- package/dist/controllers/auth.js +46 -0
- package/dist/cowboy-components.d.ts +4 -0
- package/dist/cowboy-components.js +4 -0
- package/dist/cowboy-components.umd.cjs +1833 -1254
- package/dist/css/button.css.js +1 -2
- package/dist/events/doctor.d.ts +2 -0
- package/dist/events/doctor.js +2 -0
- package/dist/model/auth.d.ts +8 -0
- package/dist/model/auth.js +1 -0
- package/dist/rodeo.d.ts +5 -0
- package/dist/rodeo.js +9 -0
- package/dist/services/auth-service.d.ts +5 -0
- package/dist/services/auth-service.js +24 -0
- package/package.json +4 -1
package/dist/css/button.css.js
CHANGED
package/dist/events/doctor.d.ts
CHANGED
|
@@ -49,6 +49,8 @@ export declare const ExplorerDependentNodeClicked: string;
|
|
|
49
49
|
export declare const ArchiveURLRequested: string;
|
|
50
50
|
export declare const DocumentReferenceClicked: string;
|
|
51
51
|
export declare const NukeWorkspaceEvent: string;
|
|
52
|
+
export declare const AuthenticationGithubRequested = "authenticationGithubRequested";
|
|
53
|
+
export declare const LogoutRequested = "logoutRequested";
|
|
52
54
|
export interface ArchiveURLRequestedEvent {
|
|
53
55
|
url: string;
|
|
54
56
|
}
|
package/dist/events/doctor.js
CHANGED
|
@@ -43,6 +43,8 @@ export const ExplorerDependentNodeClicked = "explorerDependentNodeClicked";
|
|
|
43
43
|
export const ArchiveURLRequested = "archiveURLRequested";
|
|
44
44
|
export const DocumentReferenceClicked = "documentReferenceClicked";
|
|
45
45
|
export const NukeWorkspaceEvent = "nukeWorkspace";
|
|
46
|
+
export const AuthenticationGithubRequested = "authenticationGithubRequested";
|
|
47
|
+
export const LogoutRequested = "logoutRequested";
|
|
46
48
|
export var ActiveView;
|
|
47
49
|
(function (ActiveView) {
|
|
48
50
|
ActiveView["Problems"] = "problems";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/rodeo.d.ts
ADDED
package/dist/rodeo.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './css/cowboy-components.css';
|
|
2
|
+
import './css/pb33f-theme.css';
|
|
3
|
+
import './components/header/header.js';
|
|
4
|
+
import './components/footer/footer.js';
|
|
5
|
+
import './components/rodeo/rodeo.js';
|
|
6
|
+
// Set the base path to the folder you copied Shoelace's assets to
|
|
7
|
+
import { setBasePath } from '@shoelace-style/shoelace/dist/utilities/base-path.js';
|
|
8
|
+
setBasePath('/shoelace');
|
|
9
|
+
//setBasePath('/assets/shoelace');
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export class AuthService {
|
|
2
|
+
static async checkAuth() {
|
|
3
|
+
return new Promise(async (resolve, reject) => {
|
|
4
|
+
try {
|
|
5
|
+
const authState = await fetch(AuthService.doctorEndpoint + '/auth/check-auth', {
|
|
6
|
+
method: 'GET',
|
|
7
|
+
credentials: 'include',
|
|
8
|
+
});
|
|
9
|
+
let state = await authState.json();
|
|
10
|
+
if (!authState.ok) {
|
|
11
|
+
reject(false);
|
|
12
|
+
}
|
|
13
|
+
resolve(state);
|
|
14
|
+
}
|
|
15
|
+
catch (e) {
|
|
16
|
+
reject({
|
|
17
|
+
tile: "platform error", detail: "cannot check authentication state " +
|
|
18
|
+
"please try again later."
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
AuthService.doctorEndpoint = 'https://doctor.pb33f.io';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Princess Beef Heavy Industries Cowboy Components",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
|
-
"version": "0.5.
|
|
6
|
+
"version": "0.5.6",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/cowboy-components.umd.cjs",
|
|
9
9
|
"module": "./dist/cowboy-components.js",
|
|
@@ -35,11 +35,13 @@
|
|
|
35
35
|
"@pb33f/ranch": "^0.3.4",
|
|
36
36
|
"@pb33f/saddlebag": "^0.2.1",
|
|
37
37
|
"@shoelace-style/shoelace": "^2.15.0",
|
|
38
|
+
"@vaadin/router": "^2.0.0",
|
|
38
39
|
"d3-shape": "^3.2.0",
|
|
39
40
|
"elkjs": "^0.9.3",
|
|
40
41
|
"marked": "^11.1.1",
|
|
41
42
|
"monaco-editor": "^0.52.0",
|
|
42
43
|
"prismjs": "^1.29.0",
|
|
44
|
+
"snapsvg-cjs": "^0.0.6",
|
|
43
45
|
"web-worker": "^1.3.0"
|
|
44
46
|
},
|
|
45
47
|
"devDependencies": {
|
|
@@ -47,6 +49,7 @@
|
|
|
47
49
|
"@types/d3-shape": "^3.1.6",
|
|
48
50
|
"@types/node": "^20.10.6",
|
|
49
51
|
"@types/prismjs": "^1.26.3",
|
|
52
|
+
"@types/snapsvg": "^0.5.8",
|
|
50
53
|
"rollup-plugin-copy": "^3.5.0",
|
|
51
54
|
"typescript": "^5.3.3",
|
|
52
55
|
"vite": "5.4.6",
|