Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
check-latest: true

- name: Setup cache
uses: actions/cache@v2
uses: actions/cache@v4.2.0
id: cache
with:
path: |
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
node-version: ${{ matrix.node }}

- name: Setup cache
uses: actions/cache@v2
uses: actions/cache@v4.2.0
with:
path: |
node_modules
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
node-version: ${{ matrix.node }}

- name: Setup cache
uses: actions/cache@v2
uses: actions/cache@v4.2.0
id: cache
with:
path: |
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
node-version: ${{ matrix.node }}

- name: Setup cache
uses: actions/cache@v2
uses: actions/cache@v4.2.0
id: cache
with:
path: |
Expand Down
55 changes: 55 additions & 0 deletions modules/editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@ const JavaScriptWarning = styled.noscript`
line-height: 1.375;
`

const MigrateNotice = styled.div`
display: block;

margin-bottom: 16px;
padding: 0px 16px;
border-radius: 4px;

border: 2px solid ${({ theme }) => theme.accent.primary};
background: ${({ theme }) => transparentize(0.75, theme.accent.primary)};

color: ${({ theme }) => theme.header.primary};
font-weight: 500;
line-height: 1.375;
`

export function Editor() {
const editorManager = useRequiredContext(EditorManagerContext)

Expand Down Expand Up @@ -91,6 +106,46 @@ export function Editor() {
}
/>
</JavaScriptWarning>
<MigrateNotice>
<p>
Hey! Discohook is moving to discohook.app. You can view the current
message on the new domain{" "}
<a
href="#"
onClick={() => {
open(`https://discohook.app/${location.search}`, "_blank")
}}
>
by clicking here
</a>
. If you can&apos;t access it, please{" "}
<a
href="https://forms.gle/EFU23iYVkrqJa9vx8"
target="_blank"
rel="noopener noreferrer nofollow ugc"
>
let us know
</a>
!
</p>
<p>
<a
href="https://discohook.app/guide/deprecated/migrate-utils"
target="_blank"
rel="noopener noreferrer nofollow ugc"
>
Read More
</a>{" "}
&bull;{" "}
<a
href="https://discohook.app/me/import-org-backups"
target="_blank"
rel="noopener noreferrer nofollow ugc"
>
Migrate Backups
</a>
</p>
</MigrateNotice>
<ButtonList>
<SecondaryButton onClick={() => spawnBackupsModal()}>
Backups
Expand Down
Loading