mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
feat: local command
This commit is contained in:
@@ -136,7 +136,6 @@ const SourceViewContainer = styled('div')<{
|
||||
borderRadius: theme.affine.shape.borderRadius,
|
||||
background: isSelected ? 'rgba(152, 172, 189, 0.1)' : 'transparent',
|
||||
padding: '8px',
|
||||
// border:
|
||||
iframe: {
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
@@ -171,6 +170,7 @@ export const SourceView: FC<Props> = props => {
|
||||
<SourceViewContainer
|
||||
isSelected={isSelected}
|
||||
scene={SCENE_CONFIG.REFLINK}
|
||||
style={{ padding: '0' }}
|
||||
>
|
||||
<MemoBlockPreview
|
||||
block={block}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const _regex =
|
||||
/^(https?:\/\/(localhost:4200|(nightly|app)\.affine\.pro|.*?\.ligo-virgo\.pages\.dev)\/\w{28}\/)?(affine\w{16})$/;
|
||||
/^(https?:\/\/(localhost:4200|(nightly|app)\.affine\.pro|.*?\.ligo-virgo\.pages\.dev)\/\w{28}\/)?(affine\w{16})(\/whiteboard)?$/;
|
||||
|
||||
export const isAffineUrl = (url?: string) => {
|
||||
if (!url) return false;
|
||||
|
||||
Reference in New Issue
Block a user