-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from PubNubDevelopers/dev
tool developer docs completed
- Loading branch information
Showing
15 changed files
with
393 additions
and
63 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
File renamed without changes
File renamed without changes
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 |
---|---|---|
@@ -1,23 +1,30 @@ | ||
// import { createContext, useContext, useState } from 'react' | ||
|
||
// const Context = createContext() | ||
// const Context = createContext(); | ||
|
||
// export const AppNameProvider = ({ children }) => { | ||
// export const _AppName_Provider = ({ children }) => { | ||
|
||
// const [stateVar1, setStateVar1] = useState(); | ||
// const [stateVar2, setStateVar2] = useState(); | ||
// // Page1 state | ||
// const [foo, setFoo] = useState(); | ||
// const [bar, setBar] = useState(); | ||
|
||
// // Page2 state | ||
// const [bing, setBing] = useState(); | ||
|
||
// // provide data/functions to context users | ||
// //////////////////////////////////////// | ||
// const useAuthAdminData = { | ||
// // ManageDevice State | ||
// stateVar1, setStateVar1, | ||
// stateVar2, setStateVar2, | ||
// ////////////////////////////////////// | ||
// const use_AppName_Data = { | ||
// // Page1 State | ||
// foo, setFoo, | ||
// bar, setBar, | ||
|
||
// // Page2 State | ||
// bing, setBing, | ||
// } | ||
|
||
// return <Context.Provider value={useAppNameData}> {children} </Context.Provider> | ||
// return <Context.Provider value={use_AppName_Data}> {children} </Context.Provider> | ||
// } | ||
|
||
// export const useAppNameData = () => { | ||
// export const use_AppName_Data = () => { | ||
// return useContext(Context) | ||
// } |
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 |
---|---|---|
@@ -1,34 +1,39 @@ | ||
// @mui/icons-material | ||
////////////////////// | ||
// look for icon names here: https://mui.com/components/material-icons/ | ||
// and replace "ExtensionIcon" with that icon name | ||
|
||
// import ExtensionIcon from '@mui/icons-material/Extension'; | ||
|
||
// app pages | ||
// tool components | ||
////////////////// | ||
|
||
// import _AppName_Provider from "./_AppName_Provider.js" | ||
// import Page1 from "pages/Page1.js"; | ||
// import Page2 from "pages/Page2.js"; | ||
|
||
// var routesAppName = { | ||
// var routes_AppName_ = { | ||
// collapse: true, | ||
// name: "App Name", | ||
// name: "_App Name_", | ||
// icon: ExtensionIcon, | ||
// iconColor: "Primary", | ||
// state: "appNameCollapse", | ||
// state: "_appName_Collapse", | ||
// views: [ | ||
// { | ||
// path: "/page1", | ||
// path: "/_topic_/page1", | ||
// name: "Page 1", | ||
// component: Page1, | ||
// parent: AppNameProvider, | ||
// parent: _AppName_Provider, | ||
// layout: "/admin", | ||
// }, | ||
// { | ||
// path: "/page2", | ||
// path: "/_topic_/page2", | ||
// name: "Page 2", | ||
// component: Page2, | ||
// parent: AppNameProvider, | ||
// parent: _AppName_Provider, | ||
// layout: "/admin", | ||
// }, | ||
// ] | ||
// }; | ||
|
||
// export default routesAppName; | ||
// export default routes_AppName_; |