This commit is contained in:
ctengiz
2024-04-11 21:02:41 +03:00
parent d77f0f8359
commit 719edfd33a
8 changed files with 14 additions and 30 deletions

View File

@@ -67,7 +67,7 @@ module.exports = configure(function (ctx) {
return process.env.CUSTOM_API
} else {
if (ctx.dev) {
return 'http://localhost:41000/api'
return 'http://localhost:40300/api'
} else {
return '/api'
}
@@ -78,7 +78,7 @@ module.exports = configure(function (ctx) {
return process.env.CUSTOM_WS
} else {
if (ctx.dev) {
return 'ws://127.0.0.1:41000/ws'
return 'ws://127.0.0.1:40300/ws'
} else {
return 'wss://bres.notitek.com.tr/ws'
}

View File

@@ -7,7 +7,7 @@ import axios from 'axios'
// good idea to move this instance creation inside of the
// "export default () => {}" function below (which runs individually
// for each client)
const api = axios.create({ baseURL: 'https://api.example.com' })
const api = axios.create({ baseURL: process.env.apiAddr })
export default boot(({ app }) => {
// for use inside Vue files (Options API) through this.$axios and this.$api

View File

@@ -7,22 +7,6 @@
<q-img src="logo.png" width="120px" fit="contain"/>
</q-toolbar-title>
<q-btn
:label="`${langs[locale.locale.value].flag} ${langs[locale.locale.value].short}`"
no-caps
color="grey-5"
rounded
>
<q-menu>
<q-list style="min-width: 100px">
<q-item v-for="(v, k) in langs" :key="k"
clickable v-close-popup @click="locale.locale.value=k">
<q-item-section>{{ v.flag }} {{ v.title }}</q-item-section>
</q-item>
</q-list>
</q-menu>
</q-btn>
<q-btn
round
flat
@@ -48,13 +32,7 @@
import { ref } from 'vue'
import { useLoginStore } from 'stores/login'
import { useI18n } from 'vue-i18n'
import { langs } from 'src/lib/langlist'
const loginStore = useLoginStore()
const locale = useI18n({ useScope: 'global' })
const logout = function () {
loginStore.logout()

View File

@@ -2,7 +2,7 @@
<q-page padding>
<div class="row justify-center items-center" style="height: 70vh;">
<div class="col-xs-10 col-sm-8 col-md-6 col-lg-4 col-xl-3 q-gutter-sm" >
<q-input label="Kullanıcı Adı/ Email" outlined color="pcolor1" v-model="ldata.email"/>
<q-input label="Kullanıcı Adı/Email" outlined color="pcolor1" v-model="ldata.code"/>
<q-input
type="password"
label="Parola" outlined color="pcolor1" v-model="ldata.pass"/>

View File

@@ -55,7 +55,7 @@ Router.beforeEach(
if ((isLoggedIn) && ((to.path === '/') || (to.path === 'login'))) {
return {
path: '/panel',
path: '/',
query: '',
}
}

View File

@@ -7,7 +7,8 @@ const routes = [
requiresAuth: true
},
children: [
{ path: '', component: () => import('pages/IndexPage.vue') },
{ path: '', component: () => import('pages/index.vue') },
{ path: '/panel', component: () => import('pages/index.vue') },
]
},

View File

@@ -10,9 +10,14 @@ const defaultState = {
LoggedIn: false,
Token: '',
UsrKSUID: '',
UsrEmail: '',
UsrFullname: '',
Username: '',
ClientKSUID: '',
Email: '',
Fullname: '',
ClientCode: '',
LicenseCode: '',
PkgConf: {}
}
export const useLoginStore = defineStore('login', {