mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-18 02:21:51 +08:00
Merge branch 'feat/filesystem_and_search' of github.com:toeverything/AFFiNE into feat/filesystem_and_search
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
const { getGitVersion, getCommitHash } = require('./scripts/gitInfo');
|
const { getGitVersion, getCommitHash } = require('./scripts/gitInfo');
|
||||||
|
const { dependencies } = require('./package.json')
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
@@ -12,6 +13,7 @@ const nextConfig = {
|
|||||||
CI: process.env.CI || null,
|
CI: process.env.CI || null,
|
||||||
VERSION: getGitVersion(),
|
VERSION: getGitVersion(),
|
||||||
COMMIT_HASH: getCommitHash(),
|
COMMIT_HASH: getCommitHash(),
|
||||||
|
EDITOR_VERSION: dependencies['@blocksuite/editor']
|
||||||
},
|
},
|
||||||
images: {
|
images: {
|
||||||
unoptimized: true,
|
unoptimized: true,
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ export const StyledArrowButton = styled.button<{ isShow: boolean }>(
|
|||||||
backgroundColor: theme.colors.hoverBackground,
|
backgroundColor: theme.colors.hoverBackground,
|
||||||
borderRadius: '50%',
|
borderRadius: '50%',
|
||||||
transition: 'all .15s',
|
transition: 'all .15s',
|
||||||
position: 'fixed',
|
position: 'relative',
|
||||||
top: '34px',
|
top: '34px',
|
||||||
left: isShow ? '304px' : '-8px',
|
left: isShow ? '-16px' : '-8px',
|
||||||
zIndex: theme.zIndex.modal,
|
zIndex: theme.zIndex.modal,
|
||||||
svg: {
|
svg: {
|
||||||
transform: isShow ? 'rotate(180deg)' : 'unset',
|
transform: isShow ? 'rotate(180deg)' : 'unset',
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ type Config = {
|
|||||||
BUILD_DATE: string;
|
BUILD_DATE: string;
|
||||||
NODE_ENV: string;
|
NODE_ENV: string;
|
||||||
PROJECT_NAME: string;
|
PROJECT_NAME: string;
|
||||||
|
EDITOR_VERSION: string;
|
||||||
VERSION: string;
|
VERSION: string;
|
||||||
CI?: string;
|
CI?: string;
|
||||||
COMMIT_HASH: string;
|
COMMIT_HASH: string;
|
||||||
@@ -28,6 +29,7 @@ const printBuildInfo = () => {
|
|||||||
'Environment:',
|
'Environment:',
|
||||||
`${publicRuntimeConfig.NODE_ENV}${publicRuntimeConfig.CI ? '(ci)' : ''}`
|
`${publicRuntimeConfig.NODE_ENV}${publicRuntimeConfig.CI ? '(ci)' : ''}`
|
||||||
);
|
);
|
||||||
|
console.log('Editor Version:', publicRuntimeConfig.EDITOR_VERSION)
|
||||||
console.log('Version:', publicRuntimeConfig.VERSION);
|
console.log('Version:', publicRuntimeConfig.VERSION);
|
||||||
console.log(
|
console.log(
|
||||||
'AFFiNE is an open source project, you can view its source code on GitHub!'
|
'AFFiNE is an open source project, you can view its source code on GitHub!'
|
||||||
|
|||||||
Reference in New Issue
Block a user