@mdguggenbichler/slugbase-core 0.0.5 → 0.0.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.
@@ -11,7 +11,7 @@ import Layout from './components/Layout';
11
11
  import api from './api/client';
12
12
 
13
13
  const Setup = lazy(() => import('./pages/Setup'));
14
- const Login = lazy(() => import('./pages/Login'));
14
+ import Login from './pages/Login';
15
15
  const Signup = lazy(() => import('./pages/Signup'));
16
16
  const Dashboard = lazy(() => import('./pages/Dashboard'));
17
17
  const Bookmarks = lazy(() => import('./pages/Bookmarks'));
@@ -136,9 +136,13 @@ function ForwardingHandler() {
136
136
  function AppErrorFallback() {
137
137
  const { t } = useTranslation();
138
138
  return (
139
- <div className="min-h-screen flex flex-col items-center justify-center gap-4 p-4">
140
- <p className="text-lg text-gray-700 dark:text-gray-300">{t('common.error')}</p>
141
- <button type="button" onClick={() => window.location.reload()} className="px-4 py-2 rounded-md bg-primary text-primary-foreground hover:opacity-90">
139
+ <div className="min-h-screen flex flex-col items-center justify-center gap-4 p-4" role="alert">
140
+ <p className="text-lg text-gray-700 dark:text-gray-300 text-center">{t('common.error')}</p>
141
+ <button
142
+ type="button"
143
+ onClick={() => window.location.reload()}
144
+ className="px-4 py-2 rounded-md bg-primary text-primary-foreground hover:opacity-90"
145
+ >
142
146
  {t('common.reload')}
143
147
  </button>
144
148
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdguggenbichler/slugbase-core",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "SlugBase core: backend and frontend entrypoints for self-hosted and cloud apps",
5
5
  "type": "module",
6
6
  "exports": {