aboutsummaryrefslogtreecommitdiff
path: root/front-end
diff options
context:
space:
mode:
Diffstat (limited to 'front-end')
-rw-r--r--front-end/.env4
-rw-r--r--front-end/src/components/FooterNav1.vue2
-rw-r--r--front-end/src/views/Account/[comp].vue7
-rw-r--r--front-end/src/views/Blog/ckeditor/Editor.vue6
-rw-r--r--front-end/src/views/Blog/components/Posts/PostEdit.vue5
-rw-r--r--front-end/vite.config.ts19
6 files changed, 9 insertions, 34 deletions
diff --git a/front-end/.env b/front-end/.env
index cae7853..3dfde77 100644
--- a/front-end/.env
+++ b/front-end/.env
@@ -1,5 +1,5 @@
#The base url for all api requests
-VITE_API_URL="/"
+VITE_API_URL="/api"
VITE_CORS_ENABLED=false
#The VNLib.Plugins.Essentials.Accounts plugin security header value
@@ -11,8 +11,6 @@ VITE_ACCOUNTS_BASE_PATH="/account"
#If true enables the PKI login method
VITE_PKI_ENDPOINT="/account/pki"
-#If true enables the Auth0 login method
-VITE_ENABLE_AUTH0=false
#The path to the blog admin api
VITE_BLOG_ADMIN_URL="/blog" \ No newline at end of file
diff --git a/front-end/src/components/FooterNav1.vue b/front-end/src/components/FooterNav1.vue
index c02585f..721684a 100644
--- a/front-end/src/components/FooterNav1.vue
+++ b/front-end/src/components/FooterNav1.vue
@@ -5,7 +5,7 @@
<router-link class="footer-link" to="/login" >
Login
</router-link>
- <router-link class="footer-link" to="/account">
+ <router-link class="footer-link" to="/account/profile">
Profile
</router-link>
<router-link class="footer-link" to="/account/settings">
diff --git a/front-end/src/views/Account/[comp].vue b/front-end/src/views/Account/[comp].vue
index 9e6343d..d854e2e 100644
--- a/front-end/src/views/Account/[comp].vue
+++ b/front-end/src/views/Account/[comp].vue
@@ -58,10 +58,8 @@ const comp = useRouteParams<ComponentType>('comp')
const tabId = computed<number>(() =>{
switch (comp.value) {
- case ComponentType.Oauth:
- return 1
case ComponentType.Settings:
- return 2
+ return 1
case ComponentType.Profile:
default:
return 0
@@ -71,9 +69,6 @@ const tabId = computed<number>(() =>{
const onTabChange = (tabid : number) =>{
switch (tabid) {
case 1:
- comp.value = ComponentType.Oauth
- break
- case 2:
comp.value = ComponentType.Settings
break
case 0:
diff --git a/front-end/src/views/Blog/ckeditor/Editor.vue b/front-end/src/views/Blog/ckeditor/Editor.vue
index c3d637c..5bbf1cb 100644
--- a/front-end/src/views/Blog/ckeditor/Editor.vue
+++ b/front-end/src/views/Blog/ckeditor/Editor.vue
@@ -75,13 +75,11 @@ import { useSessionStorage } from '@vueuse/core';
import { tryOnMounted } from '@vueuse/shared';
import { apiCall } from '@vnuge/vnlib.browser';
import { Popover, PopoverButton, PopoverPanel, Switch } from '@headlessui/vue'
-import { BlogState } from '../blog-api'
import { Converter } from 'showdown'
-
-//Import the editor config
+import { BlogState } from '../blog-api'
import { useCkConfig } from './build.ts'
-import ContentSearch from '../components/ContentSearch.vue';
import { useUploadAdapter } from './uploadAdapter';
+import ContentSearch from '../components/ContentSearch.vue';
const emit = defineEmits(['change', 'load', 'mode-change'])
diff --git a/front-end/src/views/Blog/components/Posts/PostEdit.vue b/front-end/src/views/Blog/components/Posts/PostEdit.vue
index 0268508..4106256 100644
--- a/front-end/src/views/Blog/components/Posts/PostEdit.vue
+++ b/front-end/src/views/Blog/components/Posts/PostEdit.vue
@@ -41,16 +41,17 @@
</div>
</template>
<script setup lang="ts">
-import { computed, ref } from 'vue';
+import { computed, defineAsyncComponent, ref } from 'vue';
import { BlogState } from '../../blog-api';
import { reactiveComputed } from '@vueuse/core';
import { isNil, isString, split } from 'lodash-es';
import { PostMeta, useXmlProperties } from '@vnuge/cmnext-admin';
import { apiCall, useUser } from '@vnuge/vnlib.browser';
import { getPostForm } from '../../form-helpers';
-import Editor from '../../ckeditor/Editor.vue';
import FeedFields from '../FeedFields.vue';
+const Editor = defineAsyncComponent(() => import('../../ckeditor/Editor.vue'));
+
const emit = defineEmits(['close', 'submit', 'delete']);
const props = defineProps<{
blog: BlogState
diff --git a/front-end/vite.config.ts b/front-end/vite.config.ts
index 474c4b2..c5ad69d 100644
--- a/front-end/vite.config.ts
+++ b/front-end/vite.config.ts
@@ -29,24 +29,7 @@ export default defineConfig({
rollupOptions: {
plugins: [],
output: {
- manualChunks: {
- util: [
- '@vnuge/vnlib.browser',
- '@vnuge/cmnext-admin',
- 'jose',
- 'universal-cookie',
- 'base32-encode',
- 'axios',
- 'lodash-es',
- 'otpauth',
- '@vuelidate/core',
- '@vuelidate/validators',
- 'showdown'
- ],
- vuejson:[
- 'json-editor-vue'
- ],
- },
+
}
},
},