From 53f75129367f42d5e719fc8a9156fda4d4c2cd87 Mon Sep 17 00:00:00 2001
From: ekachxaidze98 <65679299+ekachxaidze98@users.noreply.github.com>
Date: Thu, 18 Jan 2024 14:00:47 +0400
Subject: [PATCH] Core 4784 UI docs page (#1075) (#1076)
* CORE-4784: create dropdown
* CORE-4784: docs update
* merge master
---
components/docs-select/index.jsx | 58 ++
components/docs-select/styles.module.scss | 35 +
components/layout/layout.jsx | 8 +-
package-lock.json | 12 +-
public/images/dropArrow.svg | 6 +
report.20230517.140705.4715.0.001.json | 643 ------------------
.../data-providers-guide/index.jsx | 81 +--
.../data-providers-guide/styles.module.scss | 29 +-
.../membership-documentation/index.jsx | 80 +--
.../styles.module.scss | 29 +-
10 files changed, 249 insertions(+), 732 deletions(-)
create mode 100644 components/docs-select/index.jsx
create mode 100644 components/docs-select/styles.module.scss
create mode 100644 public/images/dropArrow.svg
delete mode 100644 report.20230517.140705.4715.0.001.json
diff --git a/components/docs-select/index.jsx b/components/docs-select/index.jsx
new file mode 100644
index 000000000..7a8dc176e
--- /dev/null
+++ b/components/docs-select/index.jsx
@@ -0,0 +1,58 @@
+import React, { useEffect, useRef, useState } from 'react'
+
+import styles from './styles.module.scss'
+import arrow from '../../public/images/dropArrow.svg'
+
+const DocumentSelect = ({ list, handleSelect, selectedOption }) => {
+ const [showOptions, setShowOptions] = useState(false)
+ const dropdownRef = useRef(null)
+
+ const onSelectOptionClick = (option) => {
+ handleSelect(option)
+ setShowOptions(false)
+ }
+
+ const handleClickOutside = (event) => {
+ if (dropdownRef.current && !dropdownRef.current.contains(event.target))
+ setShowOptions(false)
+ }
+
+ useEffect(() => {
+ document.addEventListener('click', handleClickOutside)
+
+ return () => {
+ document.removeEventListener('click', handleClickOutside)
+ }
+ }, [])
+
+ return (
+
+ {/* eslint-disable-next-line max-len */}
+ {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions */}
+
setShowOptions(!showOptions)}
+ className={styles.documentSelectLabel}
+ >
+ {selectedOption}
+
+
+ {showOptions && (
+
+ {list.map((option) => (
+ // eslint-disable-next-line max-len
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-noninteractive-element-interactions
+ - onSelectOptionClick(option)}
+ >
+ {option}
+
+ ))}
+
+ )}
+
+ )
+}
+
+export default DocumentSelect
diff --git a/components/docs-select/styles.module.scss b/components/docs-select/styles.module.scss
new file mode 100644
index 000000000..698d92ca9
--- /dev/null
+++ b/components/docs-select/styles.module.scss
@@ -0,0 +1,35 @@
+.document-select {
+ position: relative;
+}
+
+.document-select-label {
+ color: #212121;
+ font-size: 18px;
+ font-style: normal;
+ font-weight: 500;
+ line-height: 130%;
+ letter-spacing: 0.036px;
+ padding: 0 35px;
+}
+
+.arrow {
+ margin-left: 30px;
+}
+
+.document-dropdown {
+ width: 100%;
+ position: absolute;
+ top: 45px;
+ background: #fff;
+ border-radius: 0 0 2px 2px;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.25);
+}
+
+.document-item {
+ padding: 10px 30px;
+ cursor: pointer;
+}
+
+.document-item:hover {
+ background: #eee;
+}
diff --git a/components/layout/layout.jsx b/components/layout/layout.jsx
index 67b4b1f84..b93dd3c74 100644
--- a/components/layout/layout.jsx
+++ b/components/layout/layout.jsx
@@ -1,10 +1,12 @@
import React, { useCallback } from 'react'
import { Header, Footer } from '@oacore/design'
+import { useRouter } from 'next/router'
import Head from './head'
import SkipToContent from '../skip-to-content'
const Layout = ({ title, description, children, onNavigate }) => {
+ const router = useRouter()
const handleHeaderClick = useCallback(
(event) => {
const linkElement = event.target.closest('a')
@@ -22,8 +24,10 @@ const Layout = ({ title, description, children, onNavigate }) => {
{children}
-
-
+ {!(
+ router.pathname.includes('membership-documentation') ||
+ router.pathname.includes('data-providers-guide')
+ ) && }
>
)
}
diff --git a/package-lock.json b/package-lock.json
index 3a1929a92..3a81baa6c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2821,9 +2821,9 @@
}
},
"node_modules/@oacore/design": {
- "version": "4.9.55",
- "resolved": "https://npm.pkg.github.com/download/@oacore/design/4.9.55/00568c3f39544b87ccd4b43b0e6351ea6ca61ce6",
- "integrity": "sha512-0i+0Fi5M0zCw7uiDEWUZbyAQxMQauXv4Q0jHD/76XH6EhXw5NhMK98tv2XYm8Ya26q+mLuhtCMTna3jsdZyqsw==",
+ "version": "4.9.56",
+ "resolved": "https://npm.pkg.github.com/download/@oacore/design/4.9.56/6f64efcdc47958714163dc13aa1756296ab71943",
+ "integrity": "sha512-1TJRFoln+asTfS3nI2j9vFdw75kvCA0/fvdKDNO9ozSZIHi3TjxV7k9OC8ZhHsb4m6hU3PTdb/ruE2qFM+ArNA==",
"hasInstallScript": true,
"license": "UNLICENSED",
"dependencies": {
@@ -16259,9 +16259,9 @@
"requires": {}
},
"@oacore/design": {
- "version": "4.9.55",
- "resolved": "https://npm.pkg.github.com/download/@oacore/design/4.9.55/00568c3f39544b87ccd4b43b0e6351ea6ca61ce6",
- "integrity": "sha512-0i+0Fi5M0zCw7uiDEWUZbyAQxMQauXv4Q0jHD/76XH6EhXw5NhMK98tv2XYm8Ya26q+mLuhtCMTna3jsdZyqsw==",
+ "version": "4.9.56",
+ "resolved": "https://npm.pkg.github.com/download/@oacore/design/4.9.56/6f64efcdc47958714163dc13aa1756296ab71943",
+ "integrity": "sha512-1TJRFoln+asTfS3nI2j9vFdw75kvCA0/fvdKDNO9ozSZIHi3TjxV7k9OC8ZhHsb4m6hU3PTdb/ruE2qFM+ArNA==",
"requires": {
"@babel/runtime": "^7.12.1",
"@mdi/svg": "^5.8.55",
diff --git a/public/images/dropArrow.svg b/public/images/dropArrow.svg
new file mode 100644
index 000000000..588083975
--- /dev/null
+++ b/public/images/dropArrow.svg
@@ -0,0 +1,6 @@
+
diff --git a/report.20230517.140705.4715.0.001.json b/report.20230517.140705.4715.0.001.json
deleted file mode 100644
index 46895d550..000000000
--- a/report.20230517.140705.4715.0.001.json
+++ /dev/null
@@ -1,643 +0,0 @@
-{
- "header": {
- "reportVersion": 1,
- "event": "Allocation failed - JavaScript heap out of memory",
- "trigger": "FatalError",
- "filename": "report.20230517.140705.4715.0.001.json",
- "dumpEventTime": "2023-05-17T14:07:05Z",
- "dumpEventTimeStamp": "1684318025868",
- "processId": 4715,
- "cwd": "/Users/ekachkhaidze/Documents/Dev/@qbit/about",
- "commandLine": [
- "node",
- "/Users/ekachkhaidze/Documents/Dev/@qbit/about/node_modules/.bin/next",
- "dev",
- "-p",
- "3030"
- ],
- "nodejsVersion": "v12.13.0",
- "wordSize": 64,
- "arch": "x64",
- "platform": "darwin",
- "componentVersions": {
- "node": "12.13.0",
- "v8": "7.7.299.13-node.12",
- "uv": "1.32.0",
- "zlib": "1.2.11",
- "brotli": "1.0.7",
- "ares": "1.15.0",
- "modules": "72",
- "nghttp2": "1.39.2",
- "napi": "5",
- "llhttp": "1.1.4",
- "http_parser": "2.8.0",
- "openssl": "1.1.1d",
- "cldr": "35.1",
- "icu": "64.2",
- "tz": "2019a",
- "unicode": "12.1"
- },
- "release": {
- "name": "node",
- "lts": "Erbium",
- "headersUrl": "https://nodejs.org/download/release/v12.13.0/node-v12.13.0-headers.tar.gz",
- "sourceUrl": "https://nodejs.org/download/release/v12.13.0/node-v12.13.0.tar.gz"
- },
- "osName": "Darwin",
- "osRelease": "21.6.0",
- "osVersion": "Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:22 PDT 2022; root:xnu-8020.140.41~1/RELEASE_ARM64_T6000",
- "osMachine": "x86_64",
- "cpus": [
- {
- "model": "Apple M1 Pro",
- "speed": 2400,
- "user": 75375750,
- "nice": 0,
- "sys": 54757280,
- "idle": 250547740,
- "irq": 0
- },
- {
- "model": "Apple M1 Pro",
- "speed": 2400,
- "user": 75047860,
- "nice": 0,
- "sys": 52483770,
- "idle": 253142240,
- "irq": 0
- },
- {
- "model": "Apple M1 Pro",
- "speed": 2400,
- "user": 36364960,
- "nice": 0,
- "sys": 14403430,
- "idle": 329905490,
- "irq": 0
- },
- {
- "model": "Apple M1 Pro",
- "speed": 2400,
- "user": 27178730,
- "nice": 0,
- "sys": 9484980,
- "idle": 344010200,
- "irq": 0
- },
- {
- "model": "Apple M1 Pro",
- "speed": 2400,
- "user": 18560880,
- "nice": 0,
- "sys": 5849420,
- "idle": 356263630,
- "irq": 0
- },
- {
- "model": "Apple M1 Pro",
- "speed": 2400,
- "user": 19928040,
- "nice": 0,
- "sys": 4066310,
- "idle": 356679610,
- "irq": 0
- },
- {
- "model": "Apple M1 Pro",
- "speed": 2400,
- "user": 12291590,
- "nice": 0,
- "sys": 2341920,
- "idle": 366040480,
- "irq": 0
- },
- {
- "model": "Apple M1 Pro",
- "speed": 2400,
- "user": 8990580,
- "nice": 0,
- "sys": 1523490,
- "idle": 370159940,
- "irq": 0
- }
- ],
- "networkInterfaces": [
- {
- "name": "lo0",
- "internal": true,
- "mac": "00:00:00:00:00:00",
- "address": "127.0.0.1",
- "netmask": "255.0.0.0",
- "family": "IPv4"
- },
- {
- "name": "lo0",
- "internal": true,
- "mac": "00:00:00:00:00:00",
- "address": "::1",
- "netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
- "family": "IPv6",
- "scopeid": 0
- },
- {
- "name": "lo0",
- "internal": true,
- "mac": "00:00:00:00:00:00",
- "address": "fe80::1",
- "netmask": "ffff:ffff:ffff:ffff::",
- "family": "IPv6",
- "scopeid": 1
- },
- {
- "name": "anpi1",
- "internal": false,
- "mac": "ca:aa:db:60:4c:42",
- "address": "fe80::c8aa:dbff:fe60:4c42",
- "netmask": "ffff:ffff:ffff:ffff::",
- "family": "IPv6",
- "scopeid": 4
- },
- {
- "name": "anpi0",
- "internal": false,
- "mac": "ca:aa:db:60:4c:41",
- "address": "fe80::c8aa:dbff:fe60:4c41",
- "netmask": "ffff:ffff:ffff:ffff::",
- "family": "IPv6",
- "scopeid": 5
- },
- {
- "name": "anpi2",
- "internal": false,
- "mac": "ca:aa:db:60:4c:43",
- "address": "fe80::c8aa:dbff:fe60:4c43",
- "netmask": "ffff:ffff:ffff:ffff::",
- "family": "IPv6",
- "scopeid": 6
- },
- {
- "name": "en0",
- "internal": false,
- "mac": "f0:2f:4b:06:b6:0e",
- "address": "fe80::1069:36c1:b425:fb62",
- "netmask": "ffff:ffff:ffff:ffff::",
- "family": "IPv6",
- "scopeid": 14
- },
- {
- "name": "en0",
- "internal": false,
- "mac": "f0:2f:4b:06:b6:0e",
- "address": "192.168.0.107",
- "netmask": "255.255.255.0",
- "family": "IPv4"
- },
- {
- "name": "awdl0",
- "internal": false,
- "mac": "da:8b:ab:2b:6d:f6",
- "address": "fe80::d88b:abff:fe2b:6df6",
- "netmask": "ffff:ffff:ffff:ffff::",
- "family": "IPv6",
- "scopeid": 16
- },
- {
- "name": "llw0",
- "internal": false,
- "mac": "da:8b:ab:2b:6d:f6",
- "address": "fe80::d88b:abff:fe2b:6df6",
- "netmask": "ffff:ffff:ffff:ffff::",
- "family": "IPv6",
- "scopeid": 17
- },
- {
- "name": "utun0",
- "internal": false,
- "mac": "00:00:00:00:00:00",
- "address": "fe80::fb79:ca32:c195:bfd7",
- "netmask": "ffff:ffff:ffff:ffff::",
- "family": "IPv6",
- "scopeid": 18
- },
- {
- "name": "utun1",
- "internal": false,
- "mac": "00:00:00:00:00:00",
- "address": "fe80::36cc:8eb9:5ee4:1f9f",
- "netmask": "ffff:ffff:ffff:ffff::",
- "family": "IPv6",
- "scopeid": 19
- },
- {
- "name": "utun2",
- "internal": false,
- "mac": "00:00:00:00:00:00",
- "address": "fe80::ce81:b1c:bd2c:69e",
- "netmask": "ffff:ffff:ffff:ffff::",
- "family": "IPv6",
- "scopeid": 20
- },
- {
- "name": "utun3",
- "internal": false,
- "mac": "00:00:00:00:00:00",
- "address": "fe80::7af1:18ba:4e12:ccf2",
- "netmask": "ffff:ffff:ffff:ffff::",
- "family": "IPv6",
- "scopeid": 21
- },
- {
- "name": "utun4",
- "internal": false,
- "mac": "00:00:00:00:00:00",
- "address": "fe80::535f:3983:3149:9642",
- "netmask": "ffff:ffff:ffff:ffff::",
- "family": "IPv6",
- "scopeid": 22
- },
- {
- "name": "utun5",
- "internal": false,
- "mac": "00:00:00:00:00:00",
- "address": "fe80::48b4:456d:8f1b:2f1c",
- "netmask": "ffff:ffff:ffff:ffff::",
- "family": "IPv6",
- "scopeid": 23
- },
- {
- "name": "utun6",
- "internal": false,
- "mac": "00:00:00:00:00:00",
- "address": "fe80::325b:bfb3:cf36:cdd4",
- "netmask": "ffff:ffff:ffff:ffff::",
- "family": "IPv6",
- "scopeid": 24
- },
- {
- "name": "utun7",
- "internal": false,
- "mac": "00:00:00:00:00:00",
- "address": "fe80::e3f1:ba46:965f:9700",
- "netmask": "ffff:ffff:ffff:ffff::",
- "family": "IPv6",
- "scopeid": 25
- },
- {
- "name": "utun8",
- "internal": false,
- "mac": "00:00:00:00:00:00",
- "address": "172.22.96.204",
- "netmask": "255.255.255.255",
- "family": "IPv4"
- }
- ],
- "host": "Ekas-MacBook-Pro.local"
- },
- "javascriptStack": {
- "message": "No stack.",
- "stack": ["Unavailable."]
- },
- "nativeStack": [
- {
- "pc": "0x000000010014da5c",
- "symbol": "report::TriggerNodeReport(v8::Isolate*, node::Environment*, char const*, char const*, std::__1::basic_string, std::__1::allocator > const&, v8::Local) [/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin/node]"
- },
- {
- "pc": "0x000000010007e8a3",
- "symbol": "node::OnFatalError(char const*, char const*) [/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin/node]"
- },
- {
- "pc": "0x0000000100176267",
- "symbol": "v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin/node]"
- },
- {
- "pc": "0x0000000100176203",
- "symbol": "v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin/node]"
- },
- {
- "pc": "0x00000001002fa2b5",
- "symbol": "v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin/node]"
- },
- {
- "pc": "0x00000001002fb984",
- "symbol": "v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin/node]"
- },
- {
- "pc": "0x00000001002f8857",
- "symbol": "v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin/node]"
- },
- {
- "pc": "0x00000001002f683d",
- "symbol": "v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin/node]"
- },
- {
- "pc": "0x0000000100301f54",
- "symbol": "v8::internal::Heap::AllocateRawWithLightRetry(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin/node]"
- },
- {
- "pc": "0x0000000100301fcf",
- "symbol": "v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin/node]"
- },
- {
- "pc": "0x00000001002cebc7",
- "symbol": "v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType) [/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin/node]"
- },
- {
- "pc": "0x00000001005f7725",
- "symbol": "v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin/node]"
- },
- {
- "pc": "0x000000010092fbd9",
- "symbol": "Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin/node]"
- }
- ],
- "javascriptHeap": {
- "totalMemory": 2178355200,
- "totalCommittedMemory": 2175127456,
- "usedMemory": 2167878904,
- "availableMemory": 23255440,
- "memoryLimit": 2197815296,
- "heapSpaces": {
- "read_only_space": {
- "memorySize": 262144,
- "committedMemory": 32568,
- "capacity": 261872,
- "used": 32296,
- "available": 229576
- },
- "new_space": {
- "memorySize": 4194304,
- "committedMemory": 1612672,
- "capacity": 2094976,
- "used": 626296,
- "available": 1468680
- },
- "old_space": {
- "memorySize": 346402816,
- "committedMemory": 346389752,
- "capacity": 343038520,
- "used": 343036408,
- "available": 2112
- },
- "code_space": {
- "memorySize": 4096000,
- "committedMemory": 3914912,
- "capacity": 3403360,
- "used": 3403360,
- "available": 0
- },
- "map_space": {
- "memorySize": 6557696,
- "committedMemory": 6335312,
- "capacity": 4338240,
- "used": 4338240,
- "available": 0
- },
- "large_object_space": {
- "memorySize": 1815646208,
- "committedMemory": 1815646208,
- "capacity": 1815344480,
- "used": 1815344480,
- "available": 0
- },
- "code_large_object_space": {
- "memorySize": 1196032,
- "committedMemory": 1196032,
- "capacity": 1097824,
- "used": 1097824,
- "available": 0
- },
- "new_large_object_space": {
- "memorySize": 0,
- "committedMemory": 0,
- "capacity": 2094976,
- "used": 0,
- "available": 2094976
- }
- }
- },
- "resourceUsage": {
- "userCpuSeconds": 217.916,
- "kernelCpuSeconds": 31.4007,
- "cpuConsumptionPercent": 1.51976,
- "maxRss": 1017684951040,
- "pageFaults": {
- "IORequired": 105,
- "IONotRequired": 8919509
- },
- "fsActivity": {
- "reads": 0,
- "writes": 0
- }
- },
- "libuv": [],
- "environmentVariables": {
- "PATH": "/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/ekachkhaidze/Documents/Dev/@qbit/about/node_modules/.bin:/opt/homebrew/bin/",
- "__CFBundleIdentifier": "com.jetbrains.WebStorm",
- "SHELL": "/bin/zsh",
- "TERM": "xterm-256color",
- "USER": "ekachkhaidze",
- "FIG_JETBRAINS_SHELL_INTEGRATION": "1",
- "TMPDIR": "/var/folders/bj/v187h_b12p977y0n33249mph0000gn/T/",
- "COMMAND_MODE": "unix2003",
- "TERMINAL_EMULATOR": "JetBrains-JediTerm",
- "SSH_AUTH_SOCK": "/private/tmp/com.apple.launchd.CTTf4AqmbF/Listeners",
- "XPC_FLAGS": "0x0",
- "TERM_SESSION_ID": "88bf17a5-2d88-42c2-9273-1ba530514bff",
- "__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0",
- "LOGNAME": "ekachkhaidze",
- "LC_CTYPE": "UTF-8",
- "XPC_SERVICE_NAME": "0",
- "HOME": "/Users/ekachkhaidze",
- "SHLVL": "1",
- "PWD": "/Users/ekachkhaidze/Documents/Dev/@qbit/about",
- "OLDPWD": "/Users/ekachkhaidze/Documents/Dev/@qbit/about",
- "HOMEBREW_PREFIX": "/opt/homebrew",
- "HOMEBREW_CELLAR": "/opt/homebrew/Cellar",
- "HOMEBREW_REPOSITORY": "/opt/homebrew",
- "MANPATH": "/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/share/man:/opt/homebrew/share/man::",
- "INFOPATH": "/opt/homebrew/share/info:",
- "NVM_DIR": "/Users/ekachkhaidze/.nvm",
- "NVM_CD_FLAGS": "-q",
- "NVM_BIN": "/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin",
- "NVM_INC": "/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/include/node",
- "NPM_TOKEN": "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",
- "_": "/Users/ekachkhaidze/Documents/Dev/@qbit/about/node_modules/.bin/next",
- "NODE_ENV": "development",
- "TRACE_ID": "5f0a20f3d7e2fff6"
- },
- "userLimits": {
- "core_file_size_blocks": {
- "soft": 0,
- "hard": "unlimited"
- },
- "data_seg_size_kbytes": {
- "soft": "unlimited",
- "hard": "unlimited"
- },
- "file_size_blocks": {
- "soft": "unlimited",
- "hard": "unlimited"
- },
- "max_locked_memory_bytes": {
- "soft": "unlimited",
- "hard": "unlimited"
- },
- "max_memory_size_kbytes": {
- "soft": "unlimited",
- "hard": "unlimited"
- },
- "open_files": {
- "soft": 1048575,
- "hard": "unlimited"
- },
- "stack_size_bytes": {
- "soft": 8372224,
- "hard": 67092480
- },
- "cpu_time_seconds": {
- "soft": "unlimited",
- "hard": "unlimited"
- },
- "max_user_processes": {
- "soft": 2666,
- "hard": 4000
- },
- "virtual_memory_kbytes": {
- "soft": "unlimited",
- "hard": "unlimited"
- }
- },
- "sharedObjects": [
- "/Users/ekachkhaidze/.nvm/versions/node/v12.13.0/bin/node",
- "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation",
- "/usr/lib/libobjc.A.dylib",
- "/usr/lib/liboah.dylib",
- "/usr/lib/libfakelink.dylib",
- "/usr/lib/libicucore.A.dylib",
- "/usr/lib/libSystem.B.dylib",
- "/System/Library/PrivateFrameworks/SoftLinking.framework/Versions/A/SoftLinking",
- "/usr/lib/libc++abi.dylib",
- "/usr/lib/libc++.1.dylib",
- "/usr/lib/system/libcache.dylib",
- "/usr/lib/system/libcommonCrypto.dylib",
- "/usr/lib/system/libcompiler_rt.dylib",
- "/usr/lib/system/libcopyfile.dylib",
- "/usr/lib/system/libcorecrypto.dylib",
- "/usr/lib/system/libdispatch.dylib",
- "/usr/lib/system/libdyld.dylib",
- "/usr/lib/system/libkeymgr.dylib",
- "/usr/lib/system/libmacho.dylib",
- "/usr/lib/system/libquarantine.dylib",
- "/usr/lib/system/libremovefile.dylib",
- "/usr/lib/system/libsystem_asl.dylib",
- "/usr/lib/system/libsystem_blocks.dylib",
- "/usr/lib/system/libsystem_c.dylib",
- "/usr/lib/system/libsystem_collections.dylib",
- "/usr/lib/system/libsystem_configuration.dylib",
- "/usr/lib/system/libsystem_containermanager.dylib",
- "/usr/lib/system/libsystem_coreservices.dylib",
- "/usr/lib/system/libsystem_darwin.dylib",
- "/usr/lib/system/libsystem_dnssd.dylib",
- "/usr/lib/system/libsystem_featureflags.dylib",
- "/usr/lib/system/libsystem_info.dylib",
- "/usr/lib/system/libsystem_m.dylib",
- "/usr/lib/system/libsystem_malloc.dylib",
- "/usr/lib/system/libsystem_networkextension.dylib",
- "/usr/lib/system/libsystem_notify.dylib",
- "/usr/lib/system/libsystem_product_info_filter.dylib",
- "/usr/lib/system/libsystem_sandbox.dylib",
- "/usr/lib/system/libsystem_secinit.dylib",
- "/usr/lib/system/libsystem_kernel.dylib",
- "/usr/lib/system/libsystem_platform.dylib",
- "/usr/lib/system/libsystem_pthread.dylib",
- "/usr/lib/system/libsystem_symptoms.dylib",
- "/usr/lib/system/libsystem_trace.dylib",
- "/usr/lib/system/libunwind.dylib",
- "/usr/lib/system/libxpc.dylib",
- "/usr/lib/libnetwork.dylib",
- "/usr/lib/libpcap.A.dylib",
- "/usr/lib/libdns_services.dylib",
- "/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit",
- "/System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork",
- "/usr/lib/libsqlite3.dylib",
- "/usr/lib/libz.1.dylib",
- "/usr/lib/libcoretls_cfhelpers.dylib",
- "/System/Library/Frameworks/Security.framework/Versions/A/Security",
- "/usr/lib/libapple_nghttp2.dylib",
- "/usr/lib/libDiagnosticMessagesClient.dylib",
- "/usr/lib/libenergytrace.dylib",
- "/usr/lib/libbsm.0.dylib",
- "/usr/lib/system/libkxld.dylib",
- "/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration",
- "/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation",
- "/usr/lib/libCoreEntitlements.dylib",
- "/usr/lib/libMobileGestalt.dylib",
- "/System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression",
- "/usr/lib/libcoretls.dylib",
- "/usr/lib/libpam.2.dylib",
- "/usr/lib/libxar.1.dylib",
- "/System/Library/PrivateFrameworks/CoreAutoLayout.framework/Versions/A/CoreAutoLayout",
- "/usr/lib/libcompression.dylib",
- "/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration",
- "/usr/lib/libarchive.2.dylib",
- "/usr/lib/libxml2.2.dylib",
- "/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices",
- "/usr/lib/liblangid.dylib",
- "/System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/AppleSystemInfo",
- "/System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/Versions/A/IOMobileFramebuffer",
- "/System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface",
- "/usr/lib/liblzma.5.dylib",
- "/usr/lib/libbz2.1.0.dylib",
- "/usr/lib/libiconv.2.dylib",
- "/usr/lib/libcharset.1.dylib",
- "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents",
- "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore",
- "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata",
- "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices",
- "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit",
- "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE",
- "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices",
- "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices",
- "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList",
- "/usr/lib/libCheckFix.dylib",
- "/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC",
- "/System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP",
- "/System/Library/PrivateFrameworks/MetadataUtilities.framework/Versions/A/MetadataUtilities",
- "/usr/lib/libmecabra.dylib",
- "/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate",
- "/usr/lib/libmecab.dylib",
- "/usr/lib/libCRFSuite.dylib",
- "/usr/lib/libgermantok.dylib",
- "/usr/lib/libThaiTokenizer.dylib",
- "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage",
- "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib",
- "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib",
- "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib",
- "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib",
- "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib",
- "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib",
- "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib",
- "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib",
- "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib",
- "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib",
- "/System/Library/PrivateFrameworks/CoreAnalytics.framework/Versions/A/CoreAnalytics",
- "/System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData",
- "/System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon",
- "/usr/lib/libChineseTokenizer.dylib",
- "/System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling",
- "/System/Library/PrivateFrameworks/AppleSauce.framework/Versions/A/AppleSauce",
- "/System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji",
- "/usr/lib/libcmph.dylib",
- "/System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory",
- "/System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory",
- "/System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS",
- "/System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation",
- "/usr/lib/libutil.dylib",
- "/System/Library/PrivateFrameworks/CoreServicesStore.framework/Versions/A/CoreServicesStore",
- "/usr/lib/libapp_launch_measurement.dylib",
- "/usr/lib/libxslt.1.dylib",
- "/System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement",
- "/Users/ekachkhaidze/Documents/Dev/@qbit/about/node_modules/fsevents/fsevents.node"
- ]
-}
diff --git a/templates/documentation/data-providers-guide/index.jsx b/templates/documentation/data-providers-guide/index.jsx
index fc17de91c..59a285bd6 100644
--- a/templates/documentation/data-providers-guide/index.jsx
+++ b/templates/documentation/data-providers-guide/index.jsx
@@ -4,12 +4,12 @@ import {
DocumentationMembershipNav,
} from '@oacore/design/lib/modules'
import { useRouter } from 'next/router'
-import { Button } from '@oacore/design/lib/elements'
import { Layout } from '../../../design-v2/components'
import textData from '../../../data/dataProviders.yml'
import styles from './styles.module.scss'
import text from '../../../data/membership.yml'
+import DocumentSelect from '../../../components/docs-select'
function normalizeHref(str) {
const test = str.replace('#', '')
@@ -18,6 +18,9 @@ function normalizeHref(str) {
const DataProviderDocs = ({ dataProviderDocs }) => {
const [highlight, setHighlight] = useState()
const [navActiveIndex, setNavActiveIndex] = useState(null)
+ const [selectedOption, setSelectedOption] = useState(
+ text.documentationSwitcher[0].title
+ )
const route = useRouter()
const headerHeight = 56
@@ -52,48 +55,48 @@ const DataProviderDocs = ({ dataProviderDocs }) => {
const handleButtonClick = () => {
route.push('membership-documentation')
}
+ const handleSelectChange = (option) => {
+ setSelectedOption(option)
+ if (option === 'Membership Documentation') handleButtonClick()
+ }
return (
-
-
-
-
-
+
+
+
+ CORE DOCUMENTATION:
-
-
+
- }
- />
-
+
+
+
+
+ }
+ />
+
+
)
}
diff --git a/templates/documentation/data-providers-guide/styles.module.scss b/templates/documentation/data-providers-guide/styles.module.scss
index 1716fc19f..0f7088341 100644
--- a/templates/documentation/data-providers-guide/styles.module.scss
+++ b/templates/documentation/data-providers-guide/styles.module.scss
@@ -1,9 +1,34 @@
.docs-layout {
- padding: 9px var(--page-padding-x);
+ padding: 0 16px 0 16px;
+}
+
+.nav-wrapper {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ border: 2px solid #b75400;
+ .nav-title {
+ display: flex;
+ align-items: center;
+ padding: 4px 24px 4px 32px;
+ background: #b75400;
+ width: 450px;
+ min-height: 50px;
+ color: #fff;
+ font-size: 18px;
+ font-style: normal;
+ font-weight: 500;
+ line-height: 130%;
+ letter-spacing: 0.036px;
+ }
+ .select-wrapper {
+ width: 100%;
+ background: #fff;
+ }
}
.documentation-wrapper {
- margin: 15px 0;
+ margin: 20px 0;
}
.documentation-inner-wrapper {
diff --git a/templates/documentation/membership-documentation/index.jsx b/templates/documentation/membership-documentation/index.jsx
index 4b8f2df6f..2e6f88984 100644
--- a/templates/documentation/membership-documentation/index.jsx
+++ b/templates/documentation/membership-documentation/index.jsx
@@ -4,11 +4,11 @@ import {
DocumentationMembershipNav,
} from '@oacore/design/lib/modules'
import { useRouter } from 'next/router'
-import { Button } from '@oacore/design/lib/elements'
import { Layout } from '../../../design-v2/components'
import styles from './styles.module.scss'
import text from '../../../data/membership.yml'
+import DocumentSelect from '../../../components/docs-select'
function normalizeHref(str) {
const test = str.replace('#', '')
@@ -18,6 +18,9 @@ function normalizeHref(str) {
const DocumentationPageTemplate = ({ docs }) => {
const [highlight, setHighlight] = useState()
const [navActiveIndex, setNavActiveIndex] = useState(null)
+ const [selectedOption, setSelectedOption] = useState(
+ text.documentationSwitcher[1].title
+ )
const route = useRouter()
const headerHeight = 56
@@ -53,46 +56,47 @@ const DocumentationPageTemplate = ({ docs }) => {
route.push('data-providers-guide')
}
+ const handleSelectChange = (option) => {
+ setSelectedOption(option)
+ if (option === 'CORE Data Provider’s Guide') handleButtonClick()
+ }
+
return (
-
-
-
-
-
+
+
+
+ CORE DOCUMENTATION:
-
-
+
- }
- />
-
+
+
+
+
+ }
+ />
+
+
)
}
diff --git a/templates/documentation/membership-documentation/styles.module.scss b/templates/documentation/membership-documentation/styles.module.scss
index 1716fc19f..0f7088341 100644
--- a/templates/documentation/membership-documentation/styles.module.scss
+++ b/templates/documentation/membership-documentation/styles.module.scss
@@ -1,9 +1,34 @@
.docs-layout {
- padding: 9px var(--page-padding-x);
+ padding: 0 16px 0 16px;
+}
+
+.nav-wrapper {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ border: 2px solid #b75400;
+ .nav-title {
+ display: flex;
+ align-items: center;
+ padding: 4px 24px 4px 32px;
+ background: #b75400;
+ width: 450px;
+ min-height: 50px;
+ color: #fff;
+ font-size: 18px;
+ font-style: normal;
+ font-weight: 500;
+ line-height: 130%;
+ letter-spacing: 0.036px;
+ }
+ .select-wrapper {
+ width: 100%;
+ background: #fff;
+ }
}
.documentation-wrapper {
- margin: 15px 0;
+ margin: 20px 0;
}
.documentation-inner-wrapper {