finish up FOSS version (mostly)

This commit is contained in:
2024-10-02 15:59:42 +02:00
parent a2f6757d84
commit 52d7fa7de7
3 changed files with 3 additions and 15 deletions

View File

@@ -9,8 +9,10 @@
import { defineStore } from 'pinia';
// FOSS-VERSION: To enable the UI to be used with the FOSS version, change "isUserAuth" to true, you will be "logged in"
export const useUserStore = defineStore( 'user', {
state: () => ( { 'isUserAuth': false, 'hasSubscribed': false, 'isUsingKeyboard': false, 'username': '', 'isFOSSVersion': false } ),
state: () => ( { 'isUserAuth': true, 'hasSubscribed': false, 'isUsingKeyboard': false, 'username': '', 'isFOSSVersion': false } ),
getters: {
getUserAuthenticated: ( state ) => state.isUserAuth,
getSubscriptionStatus: ( state ) => state.hasSubscribed,

View File

@@ -26,14 +26,6 @@ declare module 'express-session' {
}
}
const routes = ( app: express.Application,
check_user: ( uid: string ) => Promise<boolean>,
save_user: ( uid: string, email: string, username: string ) => Promise<boolean>,
conf?: AuthSDKConfig
): undefined => {
}
const getUserData = ( request: express.Request ) => {
if ( !request.session.uid ) {
request.session.uid = crypto.randomUUID();
@@ -45,6 +37,5 @@ const getUserData = ( request: express.Request ) => {
export default {
checkAuth,
routes,
getUserData
}

View File

@@ -6,11 +6,6 @@ const getSubscriptions = ( uid: string ) => {
} ];
}
const configure = ( config: object ) => {
}
export default {
getSubscriptions,
configure
}