-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #865 from credebl/develop-fixed-dco
Sync changes from DEV to QA
- Loading branch information
Showing
53 changed files
with
850 additions
and
820 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,11 +14,8 @@ PUBLIC_PLATFORM_NAME=CREDEBL | |
PUBLIC_PLATFORM_LOGO=/images/CREDEBL_ICON.png | ||
PUBLIC_POWERED_BY=Blockster Labs Pvt. Ltd. | ||
PUBLIC_PLATFORM_WEB_URL=https://credebl.id/ | ||
PUBLIC_POWERED_BY_URL=https://blockster.global | ||
PUBLIC_PLATFORM_DOCS_URL=https://docs.credebl.id/en/intro/what-is-credebl/ | ||
PUBLIC_PLATFORM_GIT=https://github.com/credebl | ||
[email protected] | ||
PUBLIC_PLATFORM_SUPPORT_INVITE= | ||
PUBLIC_PLATFORM_TWITTER_URL="https://twitter.com/i/flow/login?redirect_after_login=%2Fcredebl" | ||
PUBLIC_PLATFROM_DISCORD_SUPPORT="https://discord.gg/w4hnQT7NJG" | ||
PUBLIC_ALLOW_DOMAIN="http://your-ip:5000 http://localhost:5000 http://localhost:5001 http://your-ip:5001 https://cdnjs.cloudflare.com https://tailwindcss.com https://www.blockster.global https://www.ayanworks.com https://qaapi.credebl.id https://devapi.credebl.id https://api.credebl.id https://*.credebl.id https://fonts.googleapis.com https://fonts.gstatic.com https://avatars.githubusercontent.com https://dev-org-logo.s3.ap-south-1.amazonaws.com https://flowbite-admin-dashboard.vercel.app/ wss://devapi.credebl.id wss://qaapi.credebl.id wss://api.credebl.id wss://*.credebl.id https://qa.credebl.id https://dev.credebl.id https://credebl.id http://your-ip:3001 http://localhost:3001 http://localhost:3000/certificates ws://your-ip:5000 ws://localhost:5000 https://rpc-amoy.polygon.technology/" |
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 |
---|---|---|
@@ -1,20 +1,10 @@ | ||
--- | ||
import pkg from '../../package.json' assert { type: 'json' }; | ||
import { getFromCookies } from '../api/Auth'; | ||
import { SITE_TITLE } from './constants.js'; | ||
import { envConfig } from '../config/envConfig'; | ||
const { class: clazz, metaData } = Astro.props; | ||
const initData: any = {}; | ||
const envKeys = [...Object.keys(process.env), ...Object.keys(import.meta.env)]; | ||
envKeys.forEach((item) => { | ||
initData[item] = process.env[item] || import.meta.env[item]; | ||
}); | ||
const sessionToken = getFromCookies(Astro.cookies, 'session'); | ||
const refreshToken = getFromCookies(Astro.cookies, 'refresh'); | ||
--- | ||
|
||
<!DOCTYPE html> | ||
|
@@ -34,12 +24,8 @@ const refreshToken = getFromCookies(Astro.cookies, 'refresh'); | |
|
||
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap" | ||
rel="stylesheet" | ||
/> | ||
|
||
<meta property="og:image" content={initData.PUBLIC_PLATFORM_LOGO} /> | ||
<meta property="og:image" content={envConfig.PLATFORM_DATA.logo} /> | ||
<script is:inline id="theme"> | ||
if ( | ||
localStorage.getItem('color-theme') === 'dark' || | ||
|
@@ -55,8 +41,7 @@ const refreshToken = getFromCookies(Astro.cookies, 'refresh'); | |
|
||
<body | ||
class:list={[ | ||
, | ||
// clazz, 'bg-gray-50 dark:bg-gray-800' | ||
// clazz, 'bg-gray-50 dark:bg-gray-800', | ||
'scrollbar scrollbar-w-3 scrollbar-thumb-rounded-[0.25rem]', | ||
'scrollbar-track-slate-200 scrollbar-thumb-gray-400', | ||
'dark:scrollbar-track-gray-900 dark:scrollbar-thumb-gray-700', | ||
|
@@ -66,18 +51,6 @@ const refreshToken = getFromCookies(Astro.cookies, 'refresh'); | |
<slot /> | ||
<script is:inline src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.8.0/flowbite.min.js"></script> | ||
|
||
<script | ||
id="global" | ||
define:vars={{ initData, envKeys, sessionToken, refreshToken }} | ||
> | ||
envKeys.forEach((item) => { | ||
globalThis[item] = initData[item]; | ||
}); | ||
|
||
globalThis.access_token = sessionToken; | ||
globalThis.refresh_token = refreshToken; | ||
</script> | ||
|
||
<style is:global> | ||
body { | ||
font-family: 'Inter', sans-serif; | ||
|
@@ -100,4 +73,4 @@ const refreshToken = getFromCookies(Astro.cookies, 'refresh'); | |
} | ||
</style> | ||
</body> | ||
</html> | ||
</html> |
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
Oops, something went wrong.