Skip to content

Commit

Permalink
fix(workflow): remove first time dialog and place about content on FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
Pkcarreno committed Dec 29, 2024
1 parent 2043a2d commit 5e7226a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 87 deletions.
73 changes: 0 additions & 73 deletions src/features/editor/providers/first-time-dialog-provider.tsx

This file was deleted.

35 changes: 35 additions & 0 deletions src/features/editor/providers/help-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,41 @@ const HelpInfo = () => {
<DialogTitle>Frequently Asked Questions</DialogTitle>
</DialogHeader>
<Accordion type="single" collapsible>
<AccordionItem value="about">
<AccordionTrigger>About JSoD</AccordionTrigger>
<AccordionContent>
<Paragraph>
Write, run, and share JavaScript code instantly. Main features:
</Paragraph>
<UnorderedList>
<li>
<a
className="underline underline-offset-1"
href="https://github.com/pkcarreno/jsod"
target="_blank"
>
Open source
</a>
</li>
<li>Runs 100% on your device</li>
<li>
Powered by{' '}
<a
className="underline underline-offset-1"
href="https://github.com/justjake/quickjs-emscripten"
target="_blank"
>
QuickJS
</a>
</li>
<li>Share your code</li>
<li>Installable as PWA</li>
</UnorderedList>
<Paragraph>
JSoD means '<strong>JS on Demand</strong>' 😉
</Paragraph>
</AccordionContent>
</AccordionItem>
<AccordionItem value="faq-1">
<AccordionTrigger>
How do I preview the output of my code?
Expand Down
25 changes: 11 additions & 14 deletions src/features/editor/providers/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';

import { EditorBehaviorProvider } from './editor-behavior';
import { FirstTimeDialogProvider } from './first-time-dialog-provider';
import { HelpProvider } from './help-provider';
import { MetatagsProvider } from './meta-provider';
import { SettingsDialogProvider } from './settings-dialog-provider';
Expand All @@ -13,19 +12,17 @@ interface Props {

const EditorProviders: React.FC<Props> = ({ children }) => {
return (
<FirstTimeDialogProvider>
<UntrustedModeProvider>
<MetatagsProvider>
<HelpProvider>
<SettingsDialogProvider>
<EditorBehaviorProvider>
<>{children}</>
</EditorBehaviorProvider>
</SettingsDialogProvider>
</HelpProvider>
</MetatagsProvider>
</UntrustedModeProvider>
</FirstTimeDialogProvider>
<UntrustedModeProvider>
<MetatagsProvider>
<HelpProvider>
<SettingsDialogProvider>
<EditorBehaviorProvider>
<>{children}</>
</EditorBehaviorProvider>
</SettingsDialogProvider>
</HelpProvider>
</MetatagsProvider>
</UntrustedModeProvider>
);
};

Expand Down

0 comments on commit 5e7226a

Please sign in to comment.