Skip to content

Commit b5dd0f7

Browse files
committed
rename api to gateway
1 parent 6770546 commit b5dd0f7

File tree

6 files changed

+8
-12
lines changed

6 files changed

+8
-12
lines changed

MyApp.Client/src/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ref, computed } from "vue"
22
import { useAuth } from "@servicestack/vue"
3-
import { checkAuth, logout } from "./api"
3+
import { checkAuth, logout } from "./gateway"
44

55
export function createAttrs(auth?: { roles?: string[] | undefined; permissions?: string[] | undefined } | null) {
66
return auth ? [
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { JsonServiceClient, combinePaths } from "@servicestack/client"
1+
import { JsonServiceClient } from "@servicestack/client"
22
import { useMetadata, useAuth } from "@servicestack/vue"
33
import { Authenticate } from "./dtos"
44

@@ -8,13 +8,9 @@ export function useApp() {
88

99
async function load (force?:boolean) {
1010
const { loadMetadata } = useMetadata()
11-
await loadMetadata({
12-
olderThan: location.origin.includes('localhost') || location.search.includes('clear=metadata')
13-
? 0
14-
: 60 * 60 * 1000 //1hr
15-
})
11+
await loadMetadata({ olderThan: 0 })
1612
}
17-
13+
1814
return {
1915
load,
2016
client,

MyApp.Client/src/layouts/admin.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
<script setup lang="ts">
4949
import NavHeader from '@/components/NavHeader.vue'
50-
import { useApp } from "@/api"
50+
import { useApp } from "@/gateway"
5151
import Logo from "@/assets/img/logo.svg"
5252
import { useRouter } from "vue-router"
5353

MyApp.Client/src/layouts/default.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import NavHeader from '@/components/NavHeader.vue'
33
import NavFooter from '@/components/NavFooter.vue'
4-
import { useApp } from "@/api"
4+
import { useApp } from "@/gateway"
55
66
let app = useApp()
77
app.load()

MyApp.Client/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { Icon } from '@iconify/vue'
1616

1717
import LiteYoutube from "@/components/LiteYouTube"
1818
import { configRouter, isServerRoute } from "@/routing"
19-
import { client } from "@/api"
19+
import { client } from "@/gateway"
2020

2121
const app = createApp(App)
2222
const head = createHead()

MyApp.Client/src/stores/todos.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ref, computed } from "vue"
22
import { acceptHMRUpdate, defineStore } from "pinia"
33
import { ResponseStatus } from "@servicestack/client"
4-
import { client } from "@/api"
4+
import { client } from "@/gateway"
55
import { CreateTodo, DeleteTodo, DeleteTodos, QueryTodos, Todo, UpdateTodo } from "@/dtos"
66

77
export type Filter = "all" | "finished" | "unfinished"

0 commit comments

Comments
 (0)