This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'client-setting-feathers5' into dev
- Loading branch information
Showing
39 changed files
with
730 additions
and
583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/client-core/src/admin/components/Setting/ClientTheme/DemoStyle.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import knex from 'knex' | ||
|
||
import { coilSettingPath, CoilSettingType } from '@etherealengine/engine/src/schemas/setting/coil-setting.schema' | ||
|
||
export const getCoilSetting = async () => { | ||
const knexClient = knex({ | ||
client: 'mysql', | ||
connection: { | ||
user: process.env.MYSQL_USER ?? 'server', | ||
password: process.env.MYSQL_PASSWORD ?? 'password', | ||
host: process.env.MYSQL_HOST ?? '127.0.0.1', | ||
port: parseInt(process.env.MYSQL_PORT || '3306'), | ||
database: process.env.MYSQL_DATABASE ?? 'etherealengine', | ||
charset: 'utf8mb4' | ||
} | ||
}) | ||
|
||
const coilSetting = await knexClient | ||
.select() | ||
.from<CoilSettingType>(coilSettingPath) | ||
.then(([dbCoil]) => { | ||
if (dbCoil) { | ||
return dbCoil | ||
} | ||
}) | ||
.catch((e) => { | ||
console.warn('[vite.config.js]: Failed to read coilSetting') | ||
console.warn(e) | ||
}) | ||
|
||
return coilSetting! | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.