@enso-ui/ui 7.1.1 → 7.1.4
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/package.json +1 -1
- package/src/bulma/components/VueAside.vue +5 -2
- package/src/bulma/components/navbar/NavbarItem.vue +1 -1
- package/src/core/components/navbar/Navbar.vue +2 -2
- package/src/core/components/navbar/Search.vue +1 -1
- package/src/core/components/navbar/SettingsControl.vue +1 -1
- package/src/core/components/settings/Settings.vue +1 -1
- package/src/core/components/settings/SidebarState.vue +1 -1
- package/src/core/layouts/Default.vue +5 -1
- package/src/pinia/loadState.js +6 -2
package/package.json
CHANGED
|
@@ -18,9 +18,12 @@ export default {
|
|
|
18
18
|
padding-top: 1.25rem;
|
|
19
19
|
padding-bottom: 1.25rem;
|
|
20
20
|
width: var(--enso-sidebar-width);
|
|
21
|
+
font-size: 0.95em;
|
|
22
|
+
font-family: var(--bulma-family-secondary, var(--bulma-family-primary));
|
|
21
23
|
max-height: 100vh;
|
|
22
|
-
z-index:
|
|
24
|
+
z-index: 2;
|
|
23
25
|
background: var(--enso-shell-surface);
|
|
24
|
-
|
|
26
|
+
-webkit-box-shadow: 0 1px 1px hsla(0, 0%, 4%, .65);
|
|
27
|
+
box-shadow: 0 1px 1px hsla(0, 0%, 4%, .65);
|
|
25
28
|
}
|
|
26
29
|
</style>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import App from '../../app';
|
|
3
3
|
import eventBus from '../../services/eventBus';
|
|
4
|
-
import { app as useApp } from '
|
|
5
|
-
import { layout as useLayout } from '
|
|
4
|
+
import { app as useApp } from '../../../pinia/app';
|
|
5
|
+
import { layout as useLayout } from '../../../pinia/layout';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
name: 'Navbar',
|
package/src/pinia/loadState.js
CHANGED
|
@@ -2,6 +2,7 @@ import axios from 'axios';
|
|
|
2
2
|
import App from '../core/app';
|
|
3
3
|
import eventBus from '../core/services/eventBus';
|
|
4
4
|
import { useStore } from '../core/services/pinia';
|
|
5
|
+
import { auth } from '@enso-ui/auth/src/pinia/auth';
|
|
5
6
|
import { app as useApp } from './app';
|
|
6
7
|
import { layout } from './layout';
|
|
7
8
|
import { preferences } from './preferences';
|
|
@@ -46,10 +47,13 @@ export const loadAppState = async (state = useApp()) => {
|
|
|
46
47
|
if (state.meta.env === 'local') {
|
|
47
48
|
window.http = axios;
|
|
48
49
|
}
|
|
50
|
+
|
|
51
|
+
return true;
|
|
49
52
|
} catch (error) {
|
|
50
53
|
if (error.response && error.response.status === 401) {
|
|
51
|
-
|
|
52
|
-
App.router
|
|
54
|
+
auth().logoutState();
|
|
55
|
+
App.router.push({ name: 'login' });
|
|
56
|
+
return false;
|
|
53
57
|
} else {
|
|
54
58
|
throw error;
|
|
55
59
|
}
|