mirror of
https://github.com/directus/directus.git
synced 2026-02-14 06:05:00 -05:00
Flatten module structure
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from '@vue/composition-api';
|
||||
|
||||
import useNavigation from '../../composables/use-navigation';
|
||||
import useNavigation from '../composables/use-navigation';
|
||||
|
||||
export default defineComponent({
|
||||
props: {
|
||||
@@ -1,4 +0,0 @@
|
||||
import UsersNavigation from './navigation.vue';
|
||||
|
||||
export { UsersNavigation };
|
||||
export default UsersNavigation;
|
||||
@@ -1,7 +1,7 @@
|
||||
import { defineModule } from '@/modules/define';
|
||||
|
||||
import UsersBrowse from './routes/browse/';
|
||||
import UsersDetail from './routes/detail/';
|
||||
import UsersBrowse from './routes/browse.vue';
|
||||
import UsersDetail from './routes/detail.vue';
|
||||
|
||||
export default defineModule(({ i18n }) => ({
|
||||
id: 'users',
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, computed, ref, PropType } from '@vue/composition-api';
|
||||
import UsersNavigation from '../../components/navigation/';
|
||||
import UsersNavigation from '../components/navigation.vue';
|
||||
|
||||
import { i18n } from '@/lang';
|
||||
import api from '@/api';
|
||||
@@ -112,7 +112,7 @@ import usePreset from '@/composables/use-collection-preset';
|
||||
import LayoutDrawerDetail from '@/views/private/components/layout-drawer-detail';
|
||||
import SearchInput from '@/views/private/components/search-input';
|
||||
import marked from 'marked';
|
||||
import useNavigation from '../../composables/use-navigation';
|
||||
import useNavigation from '../composables/use-navigation';
|
||||
|
||||
type Item = {
|
||||
[field: string]: any;
|
||||
@@ -1,4 +0,0 @@
|
||||
import UsersBrowse from './browse.vue';
|
||||
|
||||
export { UsersBrowse };
|
||||
export default UsersBrowse;
|
||||
@@ -128,7 +128,7 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent, computed, toRefs, ref, watch } from '@vue/composition-api';
|
||||
|
||||
import UsersNavigation from '../../components/navigation/';
|
||||
import UsersNavigation from '../components/navigation.vue';
|
||||
import { i18n } from '@/lang';
|
||||
import router from '@/router';
|
||||
import RevisionsDrawerDetail from '@/views/private/components/revisions-drawer-detail';
|
||||
@@ -139,7 +139,7 @@ import api from '@/api';
|
||||
import { useFieldsStore } from '@/stores/';
|
||||
import useFormFields from '@/composables/use-form-fields';
|
||||
import { Field } from '@/types';
|
||||
import UserInfoDrawerDetail from './components/user-info-drawer-detail.vue';
|
||||
import UserInfoDrawerDetail from '../components/user-info-drawer-detail.vue';
|
||||
import { getRootPath } from '@/utils/get-root-path';
|
||||
import useShortcut from '@/composables/use-shortcut';
|
||||
|
||||
@@ -381,10 +381,6 @@ export default defineComponent({
|
||||
border: 2px solid var(--border-normal);
|
||||
border-radius: var(--border-radius);
|
||||
|
||||
@include breakpoint(small) {
|
||||
height: 172px;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
--v-icon-color: var(--foreground-subdued);
|
||||
|
||||
@@ -400,12 +396,6 @@ export default defineComponent({
|
||||
border: solid var(--border-width) var(--border-normal);
|
||||
border-radius: var(--border-radius);
|
||||
|
||||
@include breakpoint(small) {
|
||||
width: 144px;
|
||||
height: 144px;
|
||||
margin-right: 22px;
|
||||
}
|
||||
|
||||
.v-skeleton-loader {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -416,6 +406,12 @@ export default defineComponent({
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
@include breakpoint(small) {
|
||||
width: 144px;
|
||||
height: 144px;
|
||||
margin-right: 22px;
|
||||
}
|
||||
}
|
||||
|
||||
.user-box-content {
|
||||
@@ -430,13 +426,13 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
.v-chip {
|
||||
margin-top: 4px;
|
||||
|
||||
--v-chip-color: var(--foreground-subdued);
|
||||
--v-chip-background-color: var(--background-subdued);
|
||||
--v-chip-color-hover: var(--foreground-subdued);
|
||||
--v-chip-background-color-hover: var(--background-subdued);
|
||||
|
||||
margin-top: 4px;
|
||||
|
||||
&.active {
|
||||
--v-chip-color: var(--primary);
|
||||
--v-chip-background-color: var(--primary-25);
|
||||
@@ -448,5 +444,9 @@ export default defineComponent({
|
||||
color: var(--foreground-subdued);
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint(small) {
|
||||
height: 172px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,4 +0,0 @@
|
||||
import UsersDetail from './detail.vue';
|
||||
|
||||
export { UsersDetail };
|
||||
export default UsersDetail;
|
||||
Reference in New Issue
Block a user