forked from leanprover-community/lean4web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad6fd8c
commit fa4afe9
Showing
7 changed files
with
110 additions
and
34 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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { FC } from 'react' | ||
import { Popup } from '../Navigation' | ||
import lean4webConfig from '../config/config' | ||
|
||
/** The popup with the privacy policy. */ | ||
const ImpressumPopup: FC<{ | ||
open: boolean | ||
handleClose: () => void | ||
}> = ({open, handleClose}) => { | ||
return <Popup open={open} handleClose={handleClose}> | ||
<h2>Impressum</h2> | ||
|
||
{ lean4webConfig.contactDetails && | ||
<p> | ||
<strong>Contact details</strong><br/> | ||
{lean4webConfig.contactDetails} | ||
</p> | ||
} | ||
|
||
{ lean4webConfig.impressum } | ||
</Popup> | ||
} | ||
|
||
export default ImpressumPopup |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* This file contains the documentation of the existing `config` options | ||
*/ | ||
|
||
/** An example can be any Lean file which belongs to the project. | ||
* The editor just reads the file content, but it makes sense for maintainability | ||
* that you ensure the Lean project actually builds the file. */ | ||
interface Example { | ||
/** File to load; relative path in `lean4web/Projects/<projectfolder>/` */ | ||
file: string, | ||
/** Display name used in the `Examples` menu */ | ||
name: string | ||
} | ||
|
||
/** You can add any Lean Project under `lean4web/Projects/` and add it here to use it in the | ||
* web editor. Note that you will need to manually build your project. Alternatively | ||
* you can add a file `lean4web/Projects/myProject/build.sh` which contains the instructions | ||
* to update & build the project. | ||
*/ | ||
interface Project { | ||
/** The folder containing the Lean project; the folder is expected to be in `lean4web/Projects/`. | ||
* The folder name will appear in the URL. | ||
*/ | ||
folder: string, | ||
/** Display name; shown in selection menu */ | ||
name: string, | ||
/** A list of examples which are added under the menu `Examples` */ | ||
examples?: Example[] | ||
} | ||
|
||
export type { Example, Project } |
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