@autono/open-pages 0.6.0 → 0.8.0
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/{build-6hM9Ga2d.js → build-CCoxDxL-.js} +11 -10
- package/dist/cli/bin.d.ts +1 -1
- package/dist/cli/bin.js +427 -30
- package/dist/{config-CBbwLHOo.js → config-D_U_aCQz.js} +484 -460
- package/dist/{config-C-sasGou.d.ts → config-p-TWNXbv.d.ts} +4 -4
- package/dist/{design-C13iz9_4.js → design-Cpqx7SJs.js} +1 -2
- package/dist/{dev-BO0cHiYy.js → dev-CTrB263u.js} +40 -20
- package/dist/{export-DbVwSmKW.js → export-enKL9R7x.js} +7 -10
- package/dist/index.d.ts +6 -8
- package/dist/index.js +2 -3
- package/dist/locale/index.d.ts +8 -14
- package/dist/locale/index.js +67 -32
- package/dist/{open-pages-plugin-C0poXLsx.js → open-pages-plugin-C8cFhMB9.js} +23 -38
- package/dist/preview-Dmzyd1cf.js +24 -0
- package/dist/{sync-ui-CDydLpY4.js → sync-ui-BzRiAGCK.js} +3 -5
- package/dist/{types-BzxkFHhd.d.ts → types-DDdUFUIS.d.ts} +19 -6
- package/dist/{update-D1U8TVwd.js → update-CWaCKlnl.js} +4 -7
- package/dist/{update-package-D9zws9nc.js → update-package-GaNsVdr8.js} +44 -22
- package/dist/{version-B6AiiGvT.js → version-DZrXLoAD.js} +19 -3
- package/dist/vite/index.d.ts +3 -7
- package/dist/vite/index.js +2 -7
- package/package.json +22 -21
- package/skills/apply-comments/SKILL.md +1 -0
- package/skills/create-page/SKILL.md +5 -1
- package/skills/create-theme/SKILL.md +2 -0
- package/skills/page-authoring/SKILL.md +3 -0
- package/skills/web-design-guidelines/SKILL.md +41 -0
- package/src/app/app.tsx +19 -14
- package/src/app/assets/autono-social.png +0 -0
- package/src/app/assets/autono.svg +7 -0
- package/src/app/components/asset-view.tsx +510 -26
- package/src/app/components/command/command-menu.tsx +5 -1
- package/src/app/components/command/command.tsx +4 -2
- package/src/app/components/command/home-command-menu.tsx +6 -6
- package/src/app/components/icon-tooltip.tsx +24 -15
- package/src/app/components/sidebar/folder-item.tsx +46 -19
- package/src/app/components/sidebar/icon-picker.tsx +1 -1
- package/src/app/components/sidebar/sidebar-footer.tsx +18 -7
- package/src/app/components/sidebar/sidebar.tsx +91 -64
- package/src/app/components/theme-toggle.tsx +4 -5
- package/src/app/components/themes/theme-detail.tsx +6 -3
- package/src/app/components/themes/themes-gallery.tsx +12 -7
- package/src/app/index.html +33 -2
- package/src/app/lib/assets.ts +33 -0
- package/src/app/lib/last-home-location.ts +18 -0
- package/src/app/main.tsx +10 -1
- package/src/app/routes/home-shell.tsx +82 -61
- package/src/app/routes/home.tsx +42 -39
- package/src/app/routes/page.tsx +30 -10
- package/src/app/routes/themes.tsx +6 -8
- package/src/app/styles.css +40 -4
- package/src/app/virtual.d.ts +1 -0
- package/src/locale/en.ts +17 -6
- package/src/locale/ja.ts +18 -6
- package/src/locale/types.ts +17 -4
- package/src/locale/zh-cn.ts +19 -8
- package/src/locale/zh-tw.ts +17 -6
- package/src/shared/update-package.ts +193 -0
- package/workspace/deps.json +1 -1
- package/dist/export-BsK6OCpc.js +0 -4
- package/dist/preview-sOKhzyWB.js +0 -21
- package/dist/sync-Be_hxSOF.js +0 -139
- package/dist/sync-lKEXyPOh.js +0 -3
- package/dist/version-CeffgdfZ.js +0 -3
- package/src/app/components/language-toggle.tsx +0 -46
- package/src/app/favicon.ico +0 -0
package/src/app/app.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import config from 'virtual:open-pages/config';
|
|
2
2
|
import { BrowserRouter, Route, Routes } from 'react-router-dom';
|
|
3
3
|
import { Toaster } from './components/ui/sonner';
|
|
4
|
+
import { TooltipProvider } from './components/ui/tooltip';
|
|
4
5
|
import { useLocale } from './lib/use-locale';
|
|
5
6
|
import { AssetsPage } from './routes/assets';
|
|
6
7
|
import { Home } from './routes/home';
|
|
@@ -11,20 +12,24 @@ import { ThemeDetailPage, ThemesGalleryPage } from './routes/themes';
|
|
|
11
12
|
export function App() {
|
|
12
13
|
return (
|
|
13
14
|
<BrowserRouter basename={import.meta.env.BASE_URL}>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<Route
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
{/* One app-wide provider so adjacent tooltips group: after the first
|
|
16
|
+
opens, moving along a toolbar shows the rest instantly. */}
|
|
17
|
+
<TooltipProvider delay={200}>
|
|
18
|
+
<Routes>
|
|
19
|
+
{config.build.showPageBrowser ? (
|
|
20
|
+
<Route element={<HomeShell />}>
|
|
21
|
+
<Route path="/" element={<Home />} />
|
|
22
|
+
<Route path="/themes" element={<ThemesGalleryPage />} />
|
|
23
|
+
<Route path="/themes/:themeId" element={<ThemeDetailPage />} />
|
|
24
|
+
<Route path="/assets" element={<AssetsPage />} />
|
|
25
|
+
</Route>
|
|
26
|
+
) : (
|
|
27
|
+
<Route path="/" element={<NotFound />} />
|
|
28
|
+
)}
|
|
29
|
+
<Route path="/p/:pageId" element={<PageView />} />
|
|
30
|
+
<Route path="*" element={<NotFound />} />
|
|
31
|
+
</Routes>
|
|
32
|
+
</TooltipProvider>
|
|
28
33
|
<Toaster />
|
|
29
34
|
</BrowserRouter>
|
|
30
35
|
);
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<title>Autono</title>
|
|
3
|
+
<rect width="32" height="32" rx="6" fill="#141414"/>
|
|
4
|
+
<g transform="translate(6.33, 6) scale(1.035)">
|
|
5
|
+
<path d="M9.46582 0C11.2139 2.81177e-05 12.3625 0.599608 12.9619 2.17285L18.6562 17.1582H15.3848L13.9316 13.3086C11.8147 13.3191 9.3787 13.6765 7.3418 14.2637C6.30855 14.5615 5.41163 14.9086 4.72559 15.2793C4.21991 15.5526 3.89396 15.8047 3.7002 16.0078L3.24707 17.1582H0L5.91895 2.17285C6.54333 0.599424 7.69258 0 9.46582 0ZM9.44043 3.02246C9.04098 3.02255 8.76658 3.19718 8.5918 3.59668L5.03809 12.6123C5.56437 12.4065 6.12479 12.2197 6.7041 12.0527C8.67125 11.4857 10.958 11.1165 13.0703 11.0283L10.2646 3.59668C10.1148 3.19708 9.84004 3.02246 9.44043 3.02246Z" fill="#F7F7F7"/>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|