forked from finos/vuu
-
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.
move desktop site to separate folder (finos#988)
* move desktop site to separate folder * mobile build script * remove injectScript * add redirect script instead of inject * try adding desktop build * add missing import * add second build, for desktop * fix typo * save desktop config * add script to switch desktop or mobile resources * add additional desktop resources * add misisng links * add missing images
- Loading branch information
Showing
100 changed files
with
7,715 additions
and
194 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,30 @@ | ||
This website was created with [Docusaurus v2](https://v2.docusaurus.io/). | ||
|
||
In order to start working with Docusaurus, please read the [Getting Started guide](https://docusaurus.io/docs/configuration) and browse through the following folders and files: | ||
|
||
- `website` - contains the Node/React code to build the website | ||
- `website/docusaurus.config.js` - contains the Docusaurus configuration; you'll need to edit this file. | ||
- `website/static` - contains images, PDF and other static assets used in the website; if you add a `file.pdf` in this folder, it will be served as `https://<your_host>/file.pdf`. | ||
- `docs` - contains the `.md` and `.mdx` files that are served as `https://<your_host>/<file_id>` ; the `file_id` is defined at the top of the file. | ||
|
||
## Local run | ||
|
||
Running Docusaurus locally is very simple, just follow these steps: | ||
|
||
- Make sure `node` version is 14 or higher, using `node -v` ; you can use [nvm](https://github.com/nvm-sh/nvm) to install different node versions in your system. | ||
- `cd website ; npm install ; npm run start` | ||
|
||
The command should open your browser and point to `http://localhost:3000`. | ||
|
||
## Deployment | ||
|
||
[Netlify] (https://www.netlify.com/) is the default way to serve FINOS websites publicly. Find docs [here] (https://docs.netlify.com/configure-builds/get-started/). | ||
|
||
You can configure Netlify using your own GitHub account, pointing to a personal repository (or fork); when adding a new site, please use the following configuration: | ||
|
||
- Working directory: `website` | ||
- Build command: `yarn build` | ||
- Build directory: `website/build` | ||
|
||
If you want to serve your website through `https://<project_name>.finos.org`, please email [[email protected]](mailto:[email protected]). To check a preview, visit https://project-blueprint.finos.org . | ||
. |
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,20 @@ | ||
{ | ||
"scripts": { | ||
"start": "docusaurus start", | ||
"swizzle": "docusaurus swizzle", | ||
"build": "node ./scripts/build-desktop.mjs", | ||
"publish-gh-pages": "docusaurus deploy" | ||
}, | ||
"devDependencies": { | ||
"@docusaurus/core": "^2.2.0", | ||
"@docusaurus/preset-classic": "^2.2.0", | ||
"classnames": "^2.2.6", | ||
"eslint": "^7.25.0", | ||
"eslint-plugin-react": "^7.23.2", | ||
"react": "^16.10.2", | ||
"react-dom": "^16.10.2" | ||
}, | ||
"dependencies": { | ||
"is-promise": "2.1.0" | ||
} | ||
} |
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,13 @@ | ||
import { execWait, writeFile } from "../../vuu-ui/scripts/utils.mjs"; | ||
import fs from "fs"; | ||
import { execSync } from "child_process"; | ||
|
||
const redirectToDesktop = `<script>if (window.innerWidth > 1380) window.location.href="/desktop"</script>`; | ||
|
||
console.log(`run desktop build`); | ||
await execWait("docusaurus build --out-dir ../website/build/desktop"); | ||
// let stdout = execSync("docusaurus build --out-dir ../website/build/desktop"); | ||
// console.log(stdout.toString()); | ||
|
||
// console.log(`run desktop build`); | ||
// await execWait(`docusaurus build`); |
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,3 @@ | ||
const { build } = require("@docusaurus/core/lib"); | ||
|
||
build(); |
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,138 @@ | ||
module.exports = { | ||
mainSidebar: [ | ||
{ | ||
type: "category", | ||
label: "Introduction", | ||
items: [ | ||
"introduction/what_is", | ||
"introduction/how_does_it_work", | ||
"introduction/trade-offs", | ||
], | ||
link: { | ||
type: "doc", | ||
id: "introduction/intro", | ||
}, | ||
}, | ||
{ | ||
type: "category", | ||
label: "Getting Started", | ||
items: [ | ||
"getting_started/developing", | ||
"getting_started/adding", | ||
"getting_started/using_vuu_from_java", | ||
"getting_started/configuration", | ||
], | ||
link: { | ||
type: "doc", | ||
id: "getting_started/getting_started", | ||
}, | ||
}, | ||
{ | ||
type: "category", | ||
label: "Core Concepts", | ||
items: [ | ||
"providers_tables_viewports/lifecycle", | ||
"providers_tables_viewports/providers", | ||
"providers_tables_viewports/tables", | ||
"providers_tables_viewports/viewports", | ||
"providers_tables_viewports/filter_sort", | ||
"providers_tables_viewports/modules", | ||
], | ||
link: { | ||
type: "doc", | ||
id: "providers_tables_viewports/providers_tables_viewports", | ||
}, | ||
}, | ||
{ | ||
type: "category", | ||
label: "Trees and Session Tables", | ||
items: ["trees/trees", "trees/tree_builder", "trees/aggregates"], | ||
link: { | ||
type: "doc", | ||
id: "trees/trees_session_tables", | ||
}, | ||
}, | ||
{ | ||
type: "category", | ||
label: "Server Internals", | ||
items: [ | ||
"server_internals/tickpath", | ||
"server_internals/viewport_thread", | ||
"server_internals/join_manager", | ||
], | ||
link: { | ||
type: "doc", | ||
id: "server_internals/server_internals", | ||
}, | ||
}, | ||
{ | ||
type: "category", | ||
label: "Remote Procedure Calls", | ||
items: ["rpc/service", "rpc/Menu_items"], | ||
link: { | ||
type: "doc", | ||
id: "rpc/rpc", | ||
}, | ||
}, | ||
{ | ||
type: "category", | ||
label: "Wire Protocol", | ||
items: ["wire/viewport_ack_nack"], | ||
link: { | ||
type: "doc", | ||
id: "wire/wire_protocol", | ||
}, | ||
}, | ||
{ | ||
type: "category", | ||
label: "The UI", | ||
items: [ | ||
"ui/vuu_data", | ||
"ui/vuu_data_ag_grid", | ||
"ui/vuu_data_table", | ||
"ui/visual_linking", | ||
"ui/custom_controls", | ||
"ui/calculated_columns", | ||
], | ||
|
||
link: { | ||
type: "doc", | ||
id: "ui/ui-overview", | ||
}, | ||
}, | ||
{ | ||
type: "category", | ||
label: "Performance Optimisation", | ||
items: ["perf/indices", "perf/query_planner"], | ||
link: { | ||
type: "doc", | ||
id: "perf/performance_optimization", | ||
}, | ||
}, | ||
{ | ||
type: "category", | ||
label: "Security", | ||
items: ["security/authentication", "security/authorisation"], | ||
link: { | ||
type: "doc", | ||
id: "security/security", | ||
}, | ||
}, | ||
{ | ||
type: "category", | ||
label: "New Features - RFC", | ||
items: ["rfc/conditional_formatting"], | ||
}, | ||
{ | ||
type: "category", | ||
label: "FAQ", | ||
items: ["faq/debugging_json_messages"], | ||
link: { | ||
type: "doc", | ||
id: "faq/faq", | ||
}, | ||
}, | ||
"team", | ||
"roadmap", | ||
], | ||
}; |
Oops, something went wrong.