@webiny/app-admin-ui 0.0.0-unstable.06b2ede40f → 0.0.0-unstable.0d717d18dd
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/Breadcrumbs/Breadcrumbs.d.ts +14 -0
- package/Breadcrumbs/Breadcrumbs.js +74 -0
- package/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/CommandPalette/CommandPalette.d.ts +6 -0
- package/CommandPalette/CommandPalette.js +171 -0
- package/CommandPalette/CommandPalette.js.map +1 -0
- package/CommandPalette/components/CommandDetail.d.ts +13 -0
- package/CommandPalette/components/CommandDetail.js +39 -0
- package/CommandPalette/components/CommandDetail.js.map +1 -0
- package/CommandPalette/components/CommandItemRow.d.ts +5 -0
- package/CommandPalette/components/CommandItemRow.js +39 -0
- package/CommandPalette/components/CommandItemRow.js.map +1 -0
- package/CommandPalette/components/GroupHeading.d.ts +4 -0
- package/CommandPalette/components/GroupHeading.js +10 -0
- package/CommandPalette/components/GroupHeading.js.map +1 -0
- package/CommandPalette/components/HintIcon.d.ts +4 -0
- package/CommandPalette/components/HintIcon.js +11 -0
- package/CommandPalette/components/HintIcon.js.map +1 -0
- package/CommandPalette/components/Kbd.d.ts +4 -0
- package/CommandPalette/components/Kbd.js +14 -0
- package/CommandPalette/components/Kbd.js.map +1 -0
- package/CommandPalette/components/index.d.ts +5 -0
- package/CommandPalette/components/index.js +5 -0
- package/CommandPalette/constants.d.ts +8 -0
- package/CommandPalette/constants.js +5 -0
- package/CommandPalette/constants.js.map +1 -0
- package/CommandPalette/deriveRows.d.ts +19 -0
- package/CommandPalette/deriveRows.js +100 -0
- package/CommandPalette/deriveRows.js.map +1 -0
- package/CommandPalette/types.d.ts +15 -0
- package/CommandPalette/types.js +0 -0
- package/Dashboard/Welcome.d.ts +1 -1
- package/Dashboard/Welcome.js +29 -44
- package/Dashboard/Welcome.js.map +1 -1
- package/Dashboard/components/AssistanceWidget.js +52 -57
- package/Dashboard/components/AssistanceWidget.js.map +1 -1
- package/Dashboard/components/CommunityWidget.js +56 -63
- package/Dashboard/components/CommunityWidget.js.map +1 -1
- package/Dashboard/components/MissingPermissionsWidget.js +13 -14
- package/Dashboard/components/MissingPermissionsWidget.js.map +1 -1
- package/Dashboard/components/assets/github.js +14 -0
- package/Dashboard/components/assets/github.js.map +1 -0
- package/Dashboard/components/assets/slack.js +27 -0
- package/Dashboard/components/assets/slack.js.map +1 -0
- package/Dashboard/components/assets/x-twitter.js +18 -0
- package/Dashboard/components/assets/x-twitter.js.map +1 -0
- package/Dashboard/components/assets/youtube.js +28 -0
- package/Dashboard/components/assets/youtube.js.map +1 -0
- package/Dashboard/components/index.d.ts +3 -4
- package/Dashboard/components/index.js +3 -6
- package/Dashboard.js +7 -8
- package/Dashboard.js.map +1 -1
- package/Dialog/DialogContainer.js +55 -67
- package/Dialog/DialogContainer.js.map +1 -1
- package/Dialog/DialogProvider.js +6 -9
- package/Dialog/DialogProvider.js.map +1 -1
- package/Dialog.js +6 -10
- package/Dialog.js.map +1 -1
- package/Layout.js +49 -29
- package/Layout.js.map +1 -1
- package/Logo.js +12 -13
- package/Logo.js.map +1 -1
- package/Navigation/Navigation.js +31 -33
- package/Navigation/Navigation.js.map +1 -1
- package/Navigation/SidebarMenuItems.d.ts +1 -1
- package/Navigation/SidebarMenuItems.js +32 -40
- package/Navigation/SidebarMenuItems.js.map +1 -1
- package/NotFound/notFound.js +297 -0
- package/NotFound/notFound.js.map +1 -0
- package/NotFound.js +17 -18
- package/NotFound.js.map +1 -1
- package/README.md +9 -5
- package/UserMenu/UserMenu.js +17 -25
- package/UserMenu/UserMenu.js.map +1 -1
- package/UserMenu/UserMenuHandle.js +33 -42
- package/UserMenu/UserMenuHandle.js.map +1 -1
- package/UserMenu/UserMenuItem.js +9 -12
- package/UserMenu/UserMenuItem.js.map +1 -1
- package/UserMenu/UserMenuLink.js +9 -12
- package/UserMenu/UserMenuLink.js.map +1 -1
- package/UserMenu/UserMenuSeparator.js +9 -9
- package/UserMenu/UserMenuSeparator.js.map +1 -1
- package/UserMenu.js +8 -9
- package/UserMenu.js.map +1 -1
- package/index.js +22 -11
- package/index.js.map +1 -1
- package/package.json +21 -25
- package/static/svg/github.08a73b00.svg +1 -0
- package/static/svg/notFound.e8b15981.svg +1 -0
- package/static/svg/slack.1b2ba162.svg +8 -0
- package/static/svg/x-twitter.46e7218c.svg +5 -0
- package/static/svg/youtube.3c232651.svg +11 -0
- package/styles.scss +1 -1
- package/Dashboard/components/ApplicationWidget.d.ts +0 -9
- package/Dashboard/components/ApplicationWidget.js +0 -31
- package/Dashboard/components/ApplicationWidget.js.map +0 -1
- package/Dashboard/components/index.js.map +0 -1
- package/Navigation/SidebarProvider.d.ts +0 -6
- package/Navigation/SidebarProvider.js +0 -9
- package/Navigation/SidebarProvider.js.map +0 -1
- package/Navigation.d.ts +0 -2
- package/Navigation.js +0 -11
- package/Navigation.js.map +0 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
const DEFAULT_COMMAND_GROUP = "Actions";
|
|
3
|
+
const SHORTCUT_SYMBOLS = {
|
|
4
|
+
cmd: "⌘",
|
|
5
|
+
command: "⌘",
|
|
6
|
+
mod: "⌘",
|
|
7
|
+
ctrl: "⌃",
|
|
8
|
+
control: "⌃",
|
|
9
|
+
alt: "⌥",
|
|
10
|
+
option: "⌥",
|
|
11
|
+
shift: "⇧",
|
|
12
|
+
enter: "↵",
|
|
13
|
+
return: "↵"
|
|
14
|
+
};
|
|
15
|
+
const formatShortcut = (shortcut)=>{
|
|
16
|
+
if (!shortcut) return;
|
|
17
|
+
return shortcut.split("+").map((token)=>token.trim()).filter(Boolean).map((token)=>SHORTCUT_SYMBOLS[token.toLowerCase()] ?? token.toUpperCase());
|
|
18
|
+
};
|
|
19
|
+
const isNavigable = (element)=>{
|
|
20
|
+
if (!/*#__PURE__*/ react.isValidElement(element)) return false;
|
|
21
|
+
const props = element.props;
|
|
22
|
+
return "string" == typeof props.to && !!props.to && "string" == typeof props.text && !!props.text;
|
|
23
|
+
};
|
|
24
|
+
const deriveNavigationRows = (menus, navigateTo)=>{
|
|
25
|
+
const labelByName = new Map();
|
|
26
|
+
const iconByName = new Map();
|
|
27
|
+
const parentByName = new Map();
|
|
28
|
+
for (const menu of menus){
|
|
29
|
+
parentByName.set(menu.name, menu.parent ?? null);
|
|
30
|
+
const element = menu.element;
|
|
31
|
+
if (/*#__PURE__*/ react.isValidElement(element)) {
|
|
32
|
+
const props = element.props;
|
|
33
|
+
if ("string" == typeof props.text) labelByName.set(menu.name, props.text);
|
|
34
|
+
if (props.icon) iconByName.set(menu.name, props.icon);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const sectionFor = (name)=>{
|
|
38
|
+
const parts = [];
|
|
39
|
+
let parent = parentByName.get(name) ?? null;
|
|
40
|
+
for(let depth = 0; parent && depth < 10; depth++){
|
|
41
|
+
const label = labelByName.get(parent);
|
|
42
|
+
if (label) parts.unshift(label);
|
|
43
|
+
parent = parentByName.get(parent) ?? null;
|
|
44
|
+
}
|
|
45
|
+
return parts.length > 0 ? parts.join(" › ") : void 0;
|
|
46
|
+
};
|
|
47
|
+
const iconFor = (name, ownIcon)=>{
|
|
48
|
+
if (ownIcon) return ownIcon;
|
|
49
|
+
let parent = parentByName.get(name) ?? null;
|
|
50
|
+
for(let depth = 0; parent && depth < 10; depth++){
|
|
51
|
+
const icon = iconByName.get(parent);
|
|
52
|
+
if (icon) return icon;
|
|
53
|
+
parent = parentByName.get(parent) ?? null;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const rows = [];
|
|
57
|
+
const seenPaths = new Set();
|
|
58
|
+
for (const menu of menus){
|
|
59
|
+
if (!isNavigable(menu.element)) continue;
|
|
60
|
+
const { to, text, icon } = menu.element.props;
|
|
61
|
+
if (!seenPaths.has(to)) {
|
|
62
|
+
seenPaths.add(to);
|
|
63
|
+
rows.push({
|
|
64
|
+
key: menu.name,
|
|
65
|
+
value: `${text} ${menu.name}`.toLowerCase(),
|
|
66
|
+
label: text,
|
|
67
|
+
sub: sectionFor(menu.name),
|
|
68
|
+
icon: iconFor(menu.name, icon),
|
|
69
|
+
verb: "Open",
|
|
70
|
+
onRun: ()=>navigateTo(to)
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return rows;
|
|
75
|
+
};
|
|
76
|
+
const commandVmsToGroups = (commands, runCommand)=>{
|
|
77
|
+
const groups = new Map();
|
|
78
|
+
for (const command of commands){
|
|
79
|
+
const category = command.category ?? DEFAULT_COMMAND_GROUP;
|
|
80
|
+
const rows = groups.get(category) ?? [];
|
|
81
|
+
rows.push({
|
|
82
|
+
key: command.name,
|
|
83
|
+
value: `${command.label} ${(command.keywords ?? []).join(" ")} ${command.name}`.toLowerCase(),
|
|
84
|
+
label: command.label,
|
|
85
|
+
sub: command.description,
|
|
86
|
+
icon: command.icon,
|
|
87
|
+
shortcut: formatShortcut(command.shortcut),
|
|
88
|
+
verb: command.hasDetailView ? "Open" : "Run",
|
|
89
|
+
onRun: ()=>runCommand(command.name)
|
|
90
|
+
});
|
|
91
|
+
groups.set(category, rows);
|
|
92
|
+
}
|
|
93
|
+
return Array.from(groups, ([title, rows])=>({
|
|
94
|
+
title,
|
|
95
|
+
rows
|
|
96
|
+
}));
|
|
97
|
+
};
|
|
98
|
+
export { commandVmsToGroups, deriveNavigationRows, formatShortcut };
|
|
99
|
+
|
|
100
|
+
//# sourceMappingURL=deriveRows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandPalette/deriveRows.js","sources":["../../src/CommandPalette/deriveRows.tsx"],"sourcesContent":["import React from \"react\";\nimport type { MenuConfig } from \"@webiny/app-admin/config/AdminConfig/Menu.js\";\nimport type { CommandItemVm } from \"@webiny/app-admin\";\nimport type { CommandGroup, CommandRow } from \"./types.js\";\n\nconst DEFAULT_COMMAND_GROUP = \"Actions\";\n\nconst SHORTCUT_SYMBOLS: Record<string, string> = {\n cmd: \"⌘\",\n command: \"⌘\",\n mod: \"⌘\",\n ctrl: \"⌃\",\n control: \"⌃\",\n alt: \"⌥\",\n option: \"⌥\",\n shift: \"⇧\",\n enter: \"↵\",\n return: \"↵\"\n};\n\n/**\n * Turn an is-hotkey shortcut string (\"cmd+shift+m\") into display chips ([\"⌘\",\"⇧\",\"M\"]).\n */\nexport const formatShortcut = (shortcut?: string): string[] | undefined => {\n if (!shortcut) {\n return undefined;\n }\n return shortcut\n .split(\"+\")\n .map(token => token.trim())\n .filter(Boolean)\n .map(token => SHORTCUT_SYMBOLS[token.toLowerCase()] ?? token.toUpperCase());\n};\n\nconst isNavigable = (\n element: unknown\n): element is React.ReactElement<{ to: string; text: string; icon?: React.ReactNode }> => {\n if (!React.isValidElement(element)) {\n return false;\n }\n const props = element.props as { to?: unknown; text?: unknown };\n return (\n typeof props.to === \"string\" && !!props.to && typeof props.text === \"string\" && !!props.text\n );\n};\n\n/**\n * Derive Navigation rows from the registered admin menus. A navigable menu is a leaf\n * `Menu.Link` (carries a `to` path + string `text`); `Menu.Item` parents/groups have\n * no `to` and are skipped, but their label/icon are used for the child's section/icon.\n */\nexport const deriveNavigationRows = (\n menus: MenuConfig[],\n navigateTo: (to: string) => void\n): CommandRow[] => {\n const labelByName = new Map<string, string>();\n const iconByName = new Map<string, React.ReactNode>();\n const parentByName = new Map<string, string | null>();\n for (const menu of menus) {\n parentByName.set(menu.name, menu.parent ?? null);\n const element = menu.element;\n if (React.isValidElement(element)) {\n const props = element.props as { text?: unknown; icon?: React.ReactNode };\n if (typeof props.text === \"string\") {\n labelByName.set(menu.name, props.text);\n }\n if (props.icon) {\n iconByName.set(menu.name, props.icon);\n }\n }\n }\n\n // Full ancestor breadcrumb (\"Settings › System\"), so same-named leaves under\n // different sections (e.g. the File Manager app vs. its settings page) are\n // distinguishable. Depth-guarded against malformed parent cycles.\n const sectionFor = (name: string): string | undefined => {\n const parts: string[] = [];\n let parent = parentByName.get(name) ?? null;\n for (let depth = 0; parent && depth < 10; depth++) {\n const label = labelByName.get(parent);\n if (label) {\n parts.unshift(label);\n }\n parent = parentByName.get(parent) ?? null;\n }\n return parts.length > 0 ? parts.join(\" › \") : undefined;\n };\n\n // Leaf items often carry no icon of their own; walk up to the nearest ancestor\n // that has one (a group may be icon-less, but the section root usually isn't).\n const iconFor = (name: string, ownIcon?: React.ReactNode): React.ReactNode | undefined => {\n if (ownIcon) {\n return ownIcon;\n }\n let parent = parentByName.get(name) ?? null;\n for (let depth = 0; parent && depth < 10; depth++) {\n const icon = iconByName.get(parent);\n if (icon) {\n return icon;\n }\n parent = parentByName.get(parent) ?? null;\n }\n return undefined;\n };\n\n const rows: CommandRow[] = [];\n const seenPaths = new Set<string>();\n for (const menu of menus) {\n if (!isNavigable(menu.element)) {\n continue;\n }\n const { to, text, icon } = menu.element.props;\n // Skip exact duplicate destinations (same path registered more than once).\n if (seenPaths.has(to)) {\n continue;\n }\n seenPaths.add(to);\n\n rows.push({\n key: menu.name,\n value: `${text} ${menu.name}`.toLowerCase(),\n label: text,\n sub: sectionFor(menu.name),\n icon: iconFor(menu.name, icon),\n verb: \"Open\",\n onRun: () => navigateTo(to)\n });\n }\n return rows;\n};\n\n/**\n * Group DI commands (from the presenter view model) by their `category` (default\n * \"Actions\"), preserving order. Commands with a detail view show \"Open\" (the palette\n * stays open on a sub-view); the rest show \"Run\".\n */\nexport const commandVmsToGroups = (\n commands: CommandItemVm[],\n runCommand: (name: string) => void\n): CommandGroup[] => {\n const groups = new Map<string, CommandRow[]>();\n for (const command of commands) {\n const category = command.category ?? DEFAULT_COMMAND_GROUP;\n const rows = groups.get(category) ?? [];\n rows.push({\n key: command.name,\n value: `${command.label} ${(command.keywords ?? []).join(\" \")} ${command.name}`.toLowerCase(),\n label: command.label,\n sub: command.description,\n icon: command.icon,\n shortcut: formatShortcut(command.shortcut),\n verb: command.hasDetailView ? \"Open\" : \"Run\",\n onRun: () => runCommand(command.name)\n });\n groups.set(category, rows);\n }\n return Array.from(groups, ([title, rows]) => ({ title, rows }));\n};\n"],"names":["DEFAULT_COMMAND_GROUP","SHORTCUT_SYMBOLS","formatShortcut","shortcut","token","Boolean","isNavigable","element","React","props","deriveNavigationRows","menus","navigateTo","labelByName","Map","iconByName","parentByName","menu","sectionFor","name","parts","parent","depth","label","undefined","iconFor","ownIcon","icon","rows","seenPaths","Set","to","text","commandVmsToGroups","commands","runCommand","groups","command","category","Array","title"],"mappings":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
export interface CommandRow {
|
|
3
|
+
key: string;
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
sub?: string;
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
|
+
shortcut?: string[];
|
|
9
|
+
verb: string;
|
|
10
|
+
onRun: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface CommandGroup {
|
|
13
|
+
title: string;
|
|
14
|
+
rows: CommandRow[];
|
|
15
|
+
}
|
|
File without changes
|
package/Dashboard/Welcome.d.ts
CHANGED
package/Dashboard/Welcome.js
CHANGED
|
@@ -1,48 +1,33 @@
|
|
|
1
|
-
import
|
|
1
|
+
import react from "react";
|
|
2
2
|
import { Grid, Heading } from "@webiny/admin-ui";
|
|
3
|
-
import { useSecurity } from "@webiny/app-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}, /*#__PURE__*/React.createElement(Grid.Column, {
|
|
30
|
-
span: 5
|
|
31
|
-
}, !canSeeAnyWidget && /*#__PURE__*/React.createElement(MissingPermissionsWidget, null), /*#__PURE__*/React.createElement("div", {
|
|
32
|
-
className: "wby-flex wby-flex-col wby-gap-lg"
|
|
33
|
-
}, widgets.map(pl => /*#__PURE__*/React.createElement(ApplicationWidget, {
|
|
34
|
-
key: pl.name,
|
|
35
|
-
cta: pl.widget.cta,
|
|
36
|
-
description: pl.widget.description,
|
|
37
|
-
icon: pl.widget.icon,
|
|
38
|
-
name: pl.name,
|
|
39
|
-
title: pl.widget.title
|
|
40
|
-
})))), /*#__PURE__*/React.createElement(Grid.Column, {
|
|
41
|
-
span: 7
|
|
42
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
43
|
-
className: "wby-flex wby-flex-col wby-gap-lg"
|
|
44
|
-
}, /*#__PURE__*/React.createElement(AssistanceWidget, null), /*#__PURE__*/React.createElement(CommunityWidget, null)))));
|
|
3
|
+
import { useAdminConfig, useSecurity } from "@webiny/app-admin";
|
|
4
|
+
const Welcome = ()=>{
|
|
5
|
+
const { identity } = useSecurity();
|
|
6
|
+
const { widgets } = useAdminConfig();
|
|
7
|
+
return /*#__PURE__*/ react.createElement("div", {
|
|
8
|
+
className: "my-xxl"
|
|
9
|
+
}, /*#__PURE__*/ react.createElement("div", {
|
|
10
|
+
className: "mb-3xl"
|
|
11
|
+
}, /*#__PURE__*/ react.createElement(Heading, {
|
|
12
|
+
level: 3
|
|
13
|
+
}, `Hi ${identity.displayName}, what are we doing today?`)), /*#__PURE__*/ react.createElement(Grid, {
|
|
14
|
+
gap: "spacious",
|
|
15
|
+
className: "max-w-[1200px]"
|
|
16
|
+
}, /*#__PURE__*/ react.createElement(Grid.Column, {
|
|
17
|
+
span: 6
|
|
18
|
+
}, /*#__PURE__*/ react.createElement("div", {
|
|
19
|
+
className: "flex flex-col gap-lg"
|
|
20
|
+
}, widgets.filter((w)=>"left" === w.column).map((widget)=>/*#__PURE__*/ react.createElement(react.Fragment, {
|
|
21
|
+
key: widget.name
|
|
22
|
+
}, widget.element)))), /*#__PURE__*/ react.createElement(Grid.Column, {
|
|
23
|
+
span: 6
|
|
24
|
+
}, /*#__PURE__*/ react.createElement("div", {
|
|
25
|
+
className: "flex flex-col gap-lg"
|
|
26
|
+
}, widgets.filter((w)=>"right" === w.column).map((widget)=>/*#__PURE__*/ react.createElement(react.Fragment, {
|
|
27
|
+
key: widget.name
|
|
28
|
+
}, widget.element))))));
|
|
45
29
|
};
|
|
46
|
-
|
|
30
|
+
const Dashboard_Welcome = Welcome;
|
|
31
|
+
export default Dashboard_Welcome;
|
|
47
32
|
|
|
48
33
|
//# sourceMappingURL=Welcome.js.map
|
package/Dashboard/Welcome.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Dashboard/Welcome.js","sources":["../../src/Dashboard/Welcome.tsx"],"sourcesContent":["import React from \"react\";\nimport { Grid, Heading } from \"@webiny/admin-ui\";\nimport { useSecurity } from \"@webiny/app-admin\";\nimport { useAdminConfig } from \"@webiny/app-admin\";\n\nconst Welcome = () => {\n const { identity } = useSecurity();\n const { widgets } = useAdminConfig();\n\n return (\n <div className={\"my-xxl\"}>\n <div className={\"mb-3xl\"}>\n <Heading\n level={3}\n >{`Hi ${identity!.displayName}, what are we doing today?`}</Heading>\n </div>\n <Grid gap={\"spacious\"} className={\"max-w-[1200px]\"}>\n <Grid.Column span={6}>\n <div className={\"flex flex-col gap-lg\"}>\n {widgets\n .filter(w => w.column === \"left\")\n .map(widget => (\n <React.Fragment key={widget.name}>{widget.element}</React.Fragment>\n ))}\n </div>\n </Grid.Column>\n <Grid.Column span={6}>\n <div className={\"flex flex-col gap-lg\"}>\n {widgets\n .filter(w => w.column === \"right\")\n .map(widget => (\n <React.Fragment key={widget.name}>{widget.element}</React.Fragment>\n ))}\n </div>\n </Grid.Column>\n </Grid>\n </div>\n );\n};\n\nexport default Welcome;\n"],"names":["Welcome","identity","useSecurity","widgets","useAdminConfig","Heading","Grid","w","widget","React"],"mappings":";;;AAKA,MAAMA,UAAU;IACZ,MAAM,EAAEC,QAAQ,EAAE,GAAGC;IACrB,MAAM,EAAEC,OAAO,EAAE,GAAGC;IAEpB,OAAO,WAAP,GACI,oBAAC;QAAI,WAAW;qBACZ,oBAAC;QAAI,WAAW;qBACZ,oBAACC,SAAOA;QACJ,OAAO;OACT,CAAC,GAAG,EAAEJ,SAAU,WAAW,CAAC,0BAA0B,CAAC,kBAE7D,oBAACK,MAAIA;QAAC,KAAK;QAAY,WAAW;qBAC9B,oBAACA,KAAK,MAAM;QAAC,MAAM;qBACf,oBAAC;QAAI,WAAW;OACXH,QACI,MAAM,CAACI,CAAAA,IAAKA,AAAa,WAAbA,EAAE,MAAM,EACpB,GAAG,CAACC,CAAAA,SAAAA,WAAAA,GACD,oBAACC,MAAAA,QAAc;YAAC,KAAKD,OAAO,IAAI;WAAGA,OAAO,OAAO,oBAIjE,oBAACF,KAAK,MAAM;QAAC,MAAM;qBACf,oBAAC;QAAI,WAAW;OACXH,QACI,MAAM,CAACI,CAAAA,IAAKA,AAAa,YAAbA,EAAE,MAAM,EACpB,GAAG,CAACC,CAAAA,SAAAA,WAAAA,GACD,oBAACC,MAAAA,QAAc;YAAC,KAAKD,OAAO,IAAI;WAAGA,OAAO,OAAO;AAOjF;AAEA,0BAAeR"}
|
|
@@ -1,59 +1,54 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { ReactComponent
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
rel: "noopener noreferrer",
|
|
54
|
-
variant: "secondary",
|
|
55
|
-
underline: true
|
|
56
|
-
}, "Slack us"), ".")));
|
|
57
|
-
};
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { Link, List, Text, Widget } from "@webiny/admin-ui";
|
|
3
|
+
import { ReactComponent } from "@webiny/icons/help_outline.svg";
|
|
4
|
+
import { ReactComponent as arrow_forward_svg_ReactComponent } from "@webiny/icons/arrow_forward.svg";
|
|
5
|
+
import { SimpleLink } from "@webiny/app-admin";
|
|
6
|
+
const AssistanceWidget = ()=>/*#__PURE__*/ react.createElement(Widget, {
|
|
7
|
+
variant: "light",
|
|
8
|
+
title: "Need some assistance?",
|
|
9
|
+
icon: /*#__PURE__*/ react.createElement(Widget.Icon, {
|
|
10
|
+
icon: /*#__PURE__*/ react.createElement(ReactComponent, null),
|
|
11
|
+
label: "Need some assistance?"
|
|
12
|
+
}),
|
|
13
|
+
padding: "md"
|
|
14
|
+
}, /*#__PURE__*/ react.createElement(List, {
|
|
15
|
+
variant: "container",
|
|
16
|
+
className: "flex flex-col gap-y-sm"
|
|
17
|
+
}, /*#__PURE__*/ react.createElement(List.Item, {
|
|
18
|
+
title: "Documentation",
|
|
19
|
+
description: "Explore the Webiny documentation and check out code examples and guides.",
|
|
20
|
+
actions: /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(SimpleLink, {
|
|
21
|
+
to: "https://www.webiny.com/docs",
|
|
22
|
+
target: "_blank",
|
|
23
|
+
rel: "noopener noreferrer"
|
|
24
|
+
}, /*#__PURE__*/ react.createElement(List.Item.Action, {
|
|
25
|
+
icon: /*#__PURE__*/ react.createElement(arrow_forward_svg_ReactComponent, null)
|
|
26
|
+
})))
|
|
27
|
+
}), /*#__PURE__*/ react.createElement(List.Item, {
|
|
28
|
+
title: "Contact us",
|
|
29
|
+
description: /*#__PURE__*/ react.createElement(Text, {
|
|
30
|
+
size: "sm",
|
|
31
|
+
className: "text-neutral-strong"
|
|
32
|
+
}, /*#__PURE__*/ react.createElement(Link, {
|
|
33
|
+
to: "https://www.webiny.com/forms/product-demo",
|
|
34
|
+
target: "_blank",
|
|
35
|
+
rel: "noopener noreferrer",
|
|
36
|
+
variant: "secondary",
|
|
37
|
+
underline: true
|
|
38
|
+
}, "Contact Sales"), ",", " ", /*#__PURE__*/ react.createElement(Link, {
|
|
39
|
+
to: "https://www.webiny.com/partners",
|
|
40
|
+
target: "_blank",
|
|
41
|
+
rel: "noopener noreferrer",
|
|
42
|
+
variant: "secondary",
|
|
43
|
+
underline: true
|
|
44
|
+
}, "Explore Partnerships"), " ", "or", " ", /*#__PURE__*/ react.createElement(Link, {
|
|
45
|
+
to: "https://www.webiny.com/slack",
|
|
46
|
+
target: "_blank",
|
|
47
|
+
rel: "noopener noreferrer",
|
|
48
|
+
variant: "secondary",
|
|
49
|
+
underline: true
|
|
50
|
+
}, "Slack us"), ".")
|
|
51
|
+
})));
|
|
52
|
+
export { AssistanceWidget };
|
|
58
53
|
|
|
59
54
|
//# sourceMappingURL=AssistanceWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Dashboard/components/AssistanceWidget.js","sources":["../../../src/Dashboard/components/AssistanceWidget.tsx"],"sourcesContent":["import React from \"react\";\nimport { Widget, List, Link, Text } from \"@webiny/admin-ui\";\nimport { ReactComponent as HelpIcon } from \"@webiny/icons/help_outline.svg\";\nimport { ReactComponent as ArrowForwardIcon } from \"@webiny/icons/arrow_forward.svg\";\nimport { SimpleLink } from \"@webiny/app-admin\";\n\nexport const AssistanceWidget = () => {\n return (\n <Widget\n variant=\"light\"\n title=\"Need some assistance?\"\n icon={<Widget.Icon icon={<HelpIcon />} label={\"Need some assistance?\"} />}\n padding=\"md\"\n >\n <List variant=\"container\" className=\"flex flex-col gap-y-sm\">\n <List.Item\n title=\"Documentation\"\n description=\"Explore the Webiny documentation and check out code examples and guides.\"\n actions={\n <>\n <SimpleLink\n to=\"https://www.webiny.com/docs\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n <List.Item.Action icon={<ArrowForwardIcon />} />\n </SimpleLink>\n </>\n }\n />\n <List.Item\n title=\"Contact us\"\n description={\n <Text size={\"sm\"} className={\"text-neutral-strong\"}>\n <Link\n to={\"https://www.webiny.com/forms/product-demo\"}\n target={\"_blank\"}\n rel={\"noopener noreferrer\"}\n variant={\"secondary\"}\n underline\n >\n Contact Sales\n </Link>\n ,{\" \"}\n <Link\n to={\"https://www.webiny.com/partners\"}\n target={\"_blank\"}\n rel={\"noopener noreferrer\"}\n variant={\"secondary\"}\n underline\n >\n Explore Partnerships\n </Link>{\" \"}\n or{\" \"}\n <Link\n to={\"https://www.webiny.com/slack\"}\n target={\"_blank\"}\n rel={\"noopener noreferrer\"}\n variant={\"secondary\"}\n underline\n >\n Slack us\n </Link>\n .\n </Text>\n }\n />\n </List>\n </Widget>\n );\n};\n"],"names":["AssistanceWidget","Widget","HelpIcon","List","SimpleLink","ArrowForwardIcon","Text","Link"],"mappings":";;;;;AAMO,MAAMA,mBAAmB,IACrB,WAAP,GACI,oBAACC,QAAMA;QACH,SAAQ;QACR,OAAM;QACN,oBAAM,oBAACA,OAAO,IAAI;YAAC,oBAAM,oBAACC,gBAAQA;YAAK,OAAO;;QAC9C,SAAQ;qBAER,oBAACC,MAAIA;QAAC,SAAQ;QAAY,WAAU;qBAChC,oBAACA,KAAK,IAAI;QACN,OAAM;QACN,aAAY;QACZ,uBACI,wDACI,oBAACC,YAAUA;YACP,IAAG;YACH,QAAO;YACP,KAAI;yBAEJ,oBAACD,KAAK,IAAI,CAAC,MAAM;YAAC,oBAAM,oBAACE,kCAAgBA;;sBAKzD,oBAACF,KAAK,IAAI;QACN,OAAM;QACN,2BACI,oBAACG,MAAIA;YAAC,MAAM;YAAM,WAAW;yBACzB,oBAACC,MAAIA;YACD,IAAI;YACJ,QAAQ;YACR,KAAK;YACL,SAAS;YACT;WACH,kBAEM,KACL,mBACF,oBAACA,MAAIA;YACD,IAAI;YACJ,QAAQ;YACR,KAAK;YACL,SAAS;YACT;WACH,yBAEO,KAAI,MACT,mBACH,oBAACA,MAAIA;YACD,IAAI;YACJ,QAAQ;YACR,KAAK;YACL,SAAS;YACT;WACH,aAEM"}
|
|
@@ -1,65 +1,58 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { ReactComponent as
|
|
6
|
-
import { ReactComponent as
|
|
7
|
-
import { ReactComponent as
|
|
8
|
-
import { ReactComponent as
|
|
9
|
-
const SocialLink = ({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
icon: /*#__PURE__*/React.createElement(YouTubeIcon, null)
|
|
58
|
-
}), /*#__PURE__*/React.createElement(SocialLink, {
|
|
59
|
-
link: "https://x.com/WebinyCMS",
|
|
60
|
-
label: "X.com",
|
|
61
|
-
icon: /*#__PURE__*/React.createElement(TwitterIcon, null)
|
|
62
|
-
})));
|
|
63
|
-
};
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { Icon, Text, Widget } from "@webiny/admin-ui";
|
|
3
|
+
import { SimpleLink } from "@webiny/app-admin";
|
|
4
|
+
import { ReactComponent } from "./assets/youtube.js";
|
|
5
|
+
import { ReactComponent as github_js_ReactComponent } from "./assets/github.js";
|
|
6
|
+
import { ReactComponent as slack_js_ReactComponent } from "./assets/slack.js";
|
|
7
|
+
import { ReactComponent as x_twitter_js_ReactComponent } from "./assets/x-twitter.js";
|
|
8
|
+
import { ReactComponent as people_alt_svg_ReactComponent } from "@webiny/icons/people_alt.svg";
|
|
9
|
+
const SocialLink = ({ link, label, icon })=>/*#__PURE__*/ react.createElement("div", {
|
|
10
|
+
className: "w-3xl bg-neutral-base rounded-md hover:opacity-80 transition-opacity"
|
|
11
|
+
}, /*#__PURE__*/ react.createElement(SimpleLink, {
|
|
12
|
+
to: link,
|
|
13
|
+
className: "no-underline!",
|
|
14
|
+
target: "_blank",
|
|
15
|
+
rel: "noopener noreferrer"
|
|
16
|
+
}, /*#__PURE__*/ react.createElement("div", {
|
|
17
|
+
className: "px-xs pt-sm-extra pb-sm text-center"
|
|
18
|
+
}, /*#__PURE__*/ react.createElement(Icon, {
|
|
19
|
+
label: `${label} icon`,
|
|
20
|
+
icon: icon,
|
|
21
|
+
size: "lg",
|
|
22
|
+
color: "inherit",
|
|
23
|
+
className: "mx-auto mb-sm"
|
|
24
|
+
}), /*#__PURE__*/ react.createElement(Text, {
|
|
25
|
+
size: "sm",
|
|
26
|
+
className: "text-neutral-strong"
|
|
27
|
+
}, label))));
|
|
28
|
+
const CommunityWidget = ()=>/*#__PURE__*/ react.createElement(Widget, {
|
|
29
|
+
icon: /*#__PURE__*/ react.createElement(Widget.Icon, {
|
|
30
|
+
icon: /*#__PURE__*/ react.createElement(people_alt_svg_ReactComponent, null),
|
|
31
|
+
label: "Join our community"
|
|
32
|
+
}),
|
|
33
|
+
variant: "light",
|
|
34
|
+
title: "Join our community",
|
|
35
|
+
description: "Get to know Webiny team members, discuss new ideas and get help:",
|
|
36
|
+
padding: "md"
|
|
37
|
+
}, /*#__PURE__*/ react.createElement("div", {
|
|
38
|
+
className: "flex justify-start items-stretch gap-md"
|
|
39
|
+
}, /*#__PURE__*/ react.createElement(SocialLink, {
|
|
40
|
+
link: "https://github.com/webiny/webiny-js",
|
|
41
|
+
label: "GitHub",
|
|
42
|
+
icon: /*#__PURE__*/ react.createElement(github_js_ReactComponent, null)
|
|
43
|
+
}), /*#__PURE__*/ react.createElement(SocialLink, {
|
|
44
|
+
link: "https://www.webiny.com/slack",
|
|
45
|
+
label: "Slack",
|
|
46
|
+
icon: /*#__PURE__*/ react.createElement(slack_js_ReactComponent, null)
|
|
47
|
+
}), /*#__PURE__*/ react.createElement(SocialLink, {
|
|
48
|
+
link: "https://youtube.com/webiny",
|
|
49
|
+
label: "YouTube",
|
|
50
|
+
icon: /*#__PURE__*/ react.createElement(ReactComponent, null)
|
|
51
|
+
}), /*#__PURE__*/ react.createElement(SocialLink, {
|
|
52
|
+
link: "https://x.com/WebinyCMS",
|
|
53
|
+
label: "X.com",
|
|
54
|
+
icon: /*#__PURE__*/ react.createElement(x_twitter_js_ReactComponent, null)
|
|
55
|
+
})));
|
|
56
|
+
export { CommunityWidget };
|
|
64
57
|
|
|
65
58
|
//# sourceMappingURL=CommunityWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Dashboard/components/CommunityWidget.js","sources":["../../../src/Dashboard/components/CommunityWidget.tsx"],"sourcesContent":["import React from \"react\";\nimport { Widget, Icon, Text } from \"@webiny/admin-ui\";\nimport { SimpleLink } from \"@webiny/app-admin\";\n// Icons\nimport { ReactComponent as YouTubeIcon } from \"./assets/youtube.svg\";\nimport { ReactComponent as GithubIcon } from \"./assets/github.svg\";\nimport { ReactComponent as SlackIcon } from \"./assets/slack.svg\";\nimport { ReactComponent as TwitterIcon } from \"./assets/x-twitter.svg\";\nimport { ReactComponent as PeopleAltIcon } from \"@webiny/icons/people_alt.svg\";\n\ninterface SocialLinkProps {\n link: string;\n label: string;\n icon: React.ReactElement;\n}\n\nconst SocialLink = ({ link, label, icon }: SocialLinkProps) => {\n return (\n <div className={\"w-3xl bg-neutral-base rounded-md hover:opacity-80 transition-opacity\"}>\n <SimpleLink\n to={link}\n className={\"no-underline!\"}\n target={\"_blank\"}\n rel={\"noopener noreferrer\"}\n >\n <div className={\"px-xs pt-sm-extra pb-sm text-center\"}>\n <Icon\n label={`${label} icon`}\n icon={icon}\n size={\"lg\"}\n color={\"inherit\"}\n className={\"mx-auto mb-sm\"}\n />\n <Text size={\"sm\"} className={\"text-neutral-strong\"}>\n {label}\n </Text>\n </div>\n </SimpleLink>\n </div>\n );\n};\n\nexport const CommunityWidget = () => {\n return (\n <Widget\n icon={<Widget.Icon icon={<PeopleAltIcon />} label={\"Join our community\"} />}\n variant=\"light\"\n title=\"Join our community\"\n description=\"Get to know Webiny team members, discuss new ideas and get help:\"\n padding=\"md\"\n >\n <div className={\"flex justify-start items-stretch gap-md\"}>\n <SocialLink\n link={\"https://github.com/webiny/webiny-js\"}\n label={\"GitHub\"}\n icon={<GithubIcon />}\n />\n <SocialLink\n link={\"https://www.webiny.com/slack\"}\n label={\"Slack\"}\n icon={<SlackIcon />}\n />\n <SocialLink\n link={\"https://youtube.com/webiny\"}\n label={\"YouTube\"}\n icon={<YouTubeIcon />}\n />\n <SocialLink\n link={\"https://x.com/WebinyCMS\"}\n label={\"X.com\"}\n icon={<TwitterIcon />}\n />\n </div>\n </Widget>\n );\n};\n"],"names":["SocialLink","link","label","icon","SimpleLink","Icon","Text","CommunityWidget","Widget","PeopleAltIcon","GithubIcon","SlackIcon","YouTubeIcon","TwitterIcon"],"mappings":";;;;;;;;AAgBA,MAAMA,aAAa,CAAC,EAAEC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAmB,GAC/C,WAAP,GACI,oBAAC;QAAI,WAAW;qBACZ,oBAACC,YAAUA;QACP,IAAIH;QACJ,WAAW;QACX,QAAQ;QACR,KAAK;qBAEL,oBAAC;QAAI,WAAW;qBACZ,oBAACI,MAAIA;QACD,OAAO,GAAGH,MAAM,KAAK,CAAC;QACtB,MAAMC;QACN,MAAM;QACN,OAAO;QACP,WAAW;sBAEf,oBAACG,MAAIA;QAAC,MAAM;QAAM,WAAW;OACxBJ;AAQlB,MAAMK,kBAAkB,IACpB,WAAP,GACI,oBAACC,QAAMA;QACH,oBAAM,oBAACA,OAAO,IAAI;YAAC,oBAAM,oBAACC,+BAAaA;YAAK,OAAO;;QACnD,SAAQ;QACR,OAAM;QACN,aAAY;QACZ,SAAQ;qBAER,oBAAC;QAAI,WAAW;qBACZ,oBAACT,YAAUA;QACP,MAAM;QACN,OAAO;QACP,oBAAM,oBAACU,0BAAUA;sBAErB,oBAACV,YAAUA;QACP,MAAM;QACN,OAAO;QACP,oBAAM,oBAACW,yBAASA;sBAEpB,oBAACX,YAAUA;QACP,MAAM;QACN,OAAO;QACP,oBAAM,oBAACY,gBAAWA;sBAEtB,oBAACZ,YAAUA;QACP,MAAM;QACN,OAAO;QACP,oBAAM,oBAACa,6BAAWA"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReactComponent
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { ReactComponent } from "@webiny/icons/visibility_off.svg";
|
|
3
3
|
import { Heading, Icon, Text } from "@webiny/admin-ui";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
4
|
+
const MissingPermissionsWidget = ()=>/*#__PURE__*/ react.createElement("div", {
|
|
5
|
+
className: "w-full h-full flex flex-col items-center justify-center text-center bg-neutral-light rounded-xl px-xxl py-lg gap-sm"
|
|
6
|
+
}, /*#__PURE__*/ react.createElement("div", null, /*#__PURE__*/ react.createElement(Icon, {
|
|
7
|
+
icon: /*#__PURE__*/ react.createElement(ReactComponent, null),
|
|
8
|
+
label: "Access permission required",
|
|
9
|
+
color: "accent",
|
|
10
|
+
size: "lg"
|
|
11
|
+
})), /*#__PURE__*/ react.createElement(Heading, {
|
|
12
|
+
level: 4
|
|
13
|
+
}, "Access permission required"), /*#__PURE__*/ react.createElement(Text, null, "It seems you do not have access to Webiny apps. Please contact the administrator to set up your Webiny account."));
|
|
14
|
+
export { MissingPermissionsWidget };
|
|
16
15
|
|
|
17
16
|
//# sourceMappingURL=MissingPermissionsWidget.js.map
|