Skip to content

Commit

Permalink
transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
wirednkod committed Feb 19, 2024
1 parent 2052904 commit 981642f
Show file tree
Hide file tree
Showing 117 changed files with 428 additions and 417 deletions.
12 changes: 6 additions & 6 deletions .licenserc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"**/*.{js, ts, tsx}": [
"/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors",
"SPDX-License-Identifier: GPL-3.0-only */"
"/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors",
"SPDX-License-Identifier: MIT */"
],
"**/*.scss": [
"/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors",
"SPDX-License-Identifier: GPL-3.0-only */"
"/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors",
"SPDX-License-Identifier: MIT */"
],
"**/*.cjs": [
"// Copyright 2024 @polkadot-cloud/frontpage authors & contributors",
"// SPDX-License-Identifier: GPL-3.0-only"
"// Copyright 2024 @polkadot-ui/frontpage authors & contributors",
"// SPDX-License-Identifier: MIT"
],
"ignore": ["testdata", "npm"]
}
4 changes: 2 additions & 2 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2024 @polkadot-cloud/frontpage authors & contributors",
// SPDX-License-Identifier: GPL-3.0-only
// Copyright 2024 @polkadot-ui/frontpage authors & contributors",
// SPDX-License-Identifier: MIT

module.exports = {
arrowParens: "always",
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

Polkadot Cloud Copyright (C) 2023-2024 Ross Bulat - Nikolaos Kontakis
Polkadot UI Copyright (C) 2023-2024 Ross Bulat - Nikolaos Kontakis
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Polkadot - Cloud](https://img.shields.io/badge/Polkadot-Assets-E6007A?logo=polkadot&logoColor=E6007A)]([https://github.com/polkadot-cloud/frontpage]) ![ci](https://github.com/polkadot-cloud/frontpage/actions/workflows/main.yml/badge.svg) [![License](https://img.shields.io/badge/License-GPL_3.0_only-blue.svg)](https://opensource.org/license/gpl-3-0/)
[![Polkadot - UI](https://img.shields.io/badge/Polkadot-Assets-E6007A?logo=polkadot&logoColor=E6007A)]([https://github.com/polkadot-ui/frontpage]) ![ci](https://github.com/polkadot-ui/frontpage/actions/workflows/main.yml/badge.svg) [![License](https://img.shields.io/badge/License-GPL_3.0_only-blue.svg)](https://opensource.org/license/gpl-3-0/)

# Polkadot Cloud Front Page
# Polkadot UI Front Page

<b>Polkadot Cloud</b> is a library and platform for developing and publishing Polkadot development assets.
<b>Polkadot UI</b> is a library and platform for developing and publishing Polkadot development assets.

18 changes: 9 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,40 +28,40 @@
<meta name="msapplication-TileColor" content="#e6007a" />
<meta name="theme-color" content="#fff" />

<meta name="title" content="Polkadot Cloud" />
<meta name="title" content="Polkadot UI" />
<meta
name="description"
content="Polkadot Cloud is a library and platform for developing and publishing assets for Polkadot (DOT) dApps."
content="Polkadot UI is a library and platform for developing and publishing assets for Polkadot (DOT) dApps."
/>

<title>
Polkadot Cloud - Library and platform for developing and publishing assets
Polkadot UI - Library and platform for developing and publishing assets
for Polkadot (DOT) dApps
</title>

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://polkadot.cloud" />
<!-- <meta property="og:url" content="https://polkadot.cloud" /> -->
<meta
property="og:title"
content="Polkadot Cloud - Library and platform for developing and publishing assets for Polkadot (DOT) dApps"
content="Polkadot UI - Library and platform for developing and publishing assets for Polkadot (DOT) dApps"
/>
<meta
property="og:description"
content="Polkadot Cloud is a library and platform for developing and publishing assets for Polkadot (DOT) dApps."
content="Polkadot UI is a library and platform for developing and publishing assets for Polkadot (DOT) dApps."
/>
<meta property="og:image" content="/img/og-image.png" />

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://polkadot.cloud" />
<!-- <meta property="twitter:url" content="https://polkadot.cloud" /> -->
<meta
property="twitter:title"
content="Polkadot Cloud - Library and platform for developing and publishing assets for Polkadot (DOT) dApps"
content="Polkadot UI - Library and platform for developing and publishing assets for Polkadot (DOT) dApps"
/>
<meta
property="twitter:description"
content="Polkadot Cloud is a library and platform for developing and publishing assets for Polkadot (DOT) dApps."
content="Polkadot UI is a library and platform for developing and publishing assets for Polkadot (DOT) dApps."
/>
<meta property="twitter:image" content="/img/og-image.png" />
<link
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@polkadot-cloud/frontpage",
"version": "0.1.0",
"license": "GPL-3.0-only",
"description": "Polkadot Cloud Landing Page.",
"name": "@polkadot-ui/frontpage",
"version": "0.2.0",
"license": "MIT",
"description": "Polkadot UI Landing Page.",
"type": "module",
"scripts": {
"clear": "rm -rf node_modules",
Expand Down Expand Up @@ -32,10 +32,10 @@
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@ledgerhq/hw-transport-webhid": "^6.28.3",
"@polkadot-cloud/assets": "^0.1.35",
"@polkadot-cloud/core": "^1.3.2",
"@polkadot-cloud/react": "^0.5.2",
"@polkadot-cloud/utils": "^0.3.0",
"@polkadot-ui/assets": "^0.5.2",
"@polkadot-ui/core": "^2.0.0",
"@polkadot-ui/react": "^0.5.0",
"@polkadot-ui/utils": "^0.4.0",
"@polkadot/keyring": "^12.6.2",
"@polkadot/util": "^12.6.2",
"@types/react": "^18.2.56",
Expand Down
4 changes: 2 additions & 2 deletions public/favicons/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Polkadot Cloud",
"short_name": "Polkadot Cloud",
"name": "Polkadot UI",
"short_name": "Polkadot UI",
"icons": [
{
"src": "/favicons/android-chrome-192x192.png",
Expand Down
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors
SPDX-License-Identifier: GPL-3.0-only */
/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors
SPDX-License-Identifier: MIT */

import { BrowserRouter } from "react-router-dom";
import { Providers } from "./Providers";
Expand Down
2 changes: 1 addition & 1 deletion src/Error.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useGlitch } from "react-powerglitch";
import "./styles/app.scss";
import IconSVG from "./svg/icon.svg?react";
import IconSVG from "./svg/polkadot_black.svg?react";

export const Error = () => {
const glitch = useGlitch({
Expand Down
14 changes: 7 additions & 7 deletions src/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright 2024 @polkadot-cloud/frontpage authors & contributors
// SPDX-License-Identifier: GPL-3.0-only
// Copyright 2024 @polkadot-ui/frontpage authors & contributors
// SPDX-License-Identifier: MIT

import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import IconSVG from "./svg/icon-filled.svg?react";
import IconSVG from "./svg/polkadot_black.svg?react";
import { faGithub } from "@fortawesome/free-brands-svg-icons";

export const Footer = () => {
Expand All @@ -16,26 +16,26 @@ export const Footer = () => {
<div>
<h4>
&copy; Copyright {new Date().getUTCFullYear()} &nbsp;
<span>Polkadot Cloud Authors & Contributors.</span>
<span>Polkadot UI Authors & Contributors.</span>
</h4>
</div>{" "}
<div>
<h4 className="license">
Licensed with{" "}
<a
href="https://spdx.org/licenses/GPL-3.0-only.html"
href="https://spdx.org/licenses/MIT.html"
target="_blank"
rel="noreferrer"
>
GPL-3.0-only
MIT
</a>
</h4>
</div>
</section>
<section>
<h4>
<a
href="https://github.com/polkadot-cloud/library"
href="https://github.com/polkadot-ui/library"
target="_blank"
rel="noreferrer"
>
Expand Down
10 changes: 5 additions & 5 deletions src/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright 2024 @polkadot-cloud/frontpage authors & contributors
// SPDX-License-Identifier: GPL-3.0-only
// Copyright 2024 @polkadot-ui/frontpage authors & contributors
// SPDX-License-Identifier: MIT

import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import IconSVG from "./svg/icon.svg?react";
import IconSVG from "./svg/polkadot_pink.svg?react";
import { faGithub } from "@fortawesome/free-brands-svg-icons";

export const Header = () => {
Expand All @@ -13,12 +13,12 @@ export const Header = () => {
<IconSVG />
</div>
<div className="title">
<h3>Polkadot Cloud Docs</h3>
<h3>Polkadot UI Docs</h3>
</div>
</section>
<section>
<a
href="https://github.com/polkadot-cloud/library"
href="https://github.com/polkadot-ui/library"
target="_blank"
rel="noreferrer"
>
Expand Down
4 changes: 2 additions & 2 deletions src/Menu/Category.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors
SPDX-License-Identifier: GPL-3.0-only */
/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors
SPDX-License-Identifier: MIT */

import { Fragment, useState } from "react";
import { Link, useLocation } from "react-router-dom";
Expand Down
4 changes: 2 additions & 2 deletions src/Menu/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors
SPDX-License-Identifier: GPL-3.0-only */
/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors
SPDX-License-Identifier: MIT */

import { Fragment, useEffect, useRef } from "react";
import { Link, useLocation } from "react-router-dom";
Expand Down
6 changes: 3 additions & 3 deletions src/Providers.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors
SPDX-License-Identifier: GPL-3.0-only */
/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors
SPDX-License-Identifier: MIT */

import { ReactNode } from "react";
import { ThemesProvider } from "./contexts/Theme";
import { UIProvider } from "./contexts/UI";
import { Theme } from "./Theme";
import { AnyJson, AnyObject } from "@polkadot-cloud/react/types";
import { AnyJson, AnyObject } from "@polkadot-ui/react/types";

/*
* A hook that wraps multiple context providers to a component and makes each parent context accessible.
Expand Down
4 changes: 2 additions & 2 deletions src/Router.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2024 @polkadot-cloud/frontpage authors & contributors
// SPDX-License-Identifier: GPL-3.0-only
// Copyright 2024 @polkadot-ui/frontpage authors & contributors
// SPDX-License-Identifier: MIT

import { Route, Routes, useLocation } from "react-router-dom";
import { routes } from "./config/routes";
Expand Down
8 changes: 4 additions & 4 deletions src/Theme.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// Copyright 2024 @polkadot-cloud/frontpage authors & contributors
// SPDX-License-Identifier: GPL-3.0-only
// Copyright 2024 @polkadot-ui/frontpage authors & contributors
// SPDX-License-Identifier: MIT

import { Router } from "./Router";

// App-wide theme classes are inserted here.
//
// App-specific theming is added to `ThemeProvider`.
// `@polkadot-cloud/react` themes are added to `Entry`.
// `@polkadot-ui/react` themes are added to `Entry`.
export const Theme = () => {
// NOTE: theme not currently in use. Defaulting to light mode.
// const { mode } = useTheme();

return (
<div className={`main theme-cloud cloud-theme-${"light"}`}>
<div className={`main theme-ui ui-theme-${"light"}`}>
<Router />
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/config/routes.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors
SPDX-License-Identifier: GPL-3.0-only */
/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors
SPDX-License-Identifier: MIT */
import { ReactNode } from "react";

import { Polkicon } from "../docs/Components/Polkicon";
Expand Down
4 changes: 2 additions & 2 deletions src/contexts/Theme/defaults.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2024 @polkadot-cloud/frontpage authors & contributors
// SPDX-License-Identifier: GPL-3.0-only
// Copyright 2024 @polkadot-ui/frontpage authors & contributors
// SPDX-License-Identifier: MIT
/* eslint-disable no-unused-vars, @typescript-eslint/no-unused-vars */

import type { ThemeContextInterface } from "./types";
Expand Down
6 changes: 3 additions & 3 deletions src/contexts/Theme/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 @polkadot-cloud/frontpage authors & contributors
// SPDX-License-Identifier: GPL-3.0-only
// Copyright 2024 @polkadot-ui/frontpage authors & contributors
// SPDX-License-Identifier: MIT

import { setStateWithRef } from "@polkadot-cloud/utils";
import { setStateWithRef } from "@polkadot-ui/utils";
import { useState, useRef, ReactNode, createContext, useContext } from "react";
import { defaultThemeContext } from "./defaults";
import type { Mode, ThemeContextInterface } from "./types";
Expand Down
4 changes: 2 additions & 2 deletions src/contexts/Theme/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2024 @polkadot-cloud/frontpage authors & contributors
// SPDX-License-Identifier: GPL-3.0-only
// Copyright 2024 @polkadot-ui/frontpage authors & contributors
// SPDX-License-Identifier: MIT

export type Mode = "light" | "dark";

Expand Down
4 changes: 2 additions & 2 deletions src/contexts/UI/defaults.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2024 @polkadot-cloud/frontpage authors & contributors
// SPDX-License-Identifier: GPL-3.0-only
// Copyright 2024 @polkadot-ui/frontpage authors & contributors
// SPDX-License-Identifier: MIT
/* eslint-disable no-unused-vars, @typescript-eslint/no-unused-vars */

import type { UIContextInterface } from "./types";
Expand Down
4 changes: 2 additions & 2 deletions src/contexts/UI/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2024 @polkadot-cloud/frontpage authors & contributors
// SPDX-License-Identifier: GPL-3.0-only
// Copyright 2024 @polkadot-ui/frontpage authors & contributors
// SPDX-License-Identifier: MIT

import { useState, ReactNode, useContext, createContext } from "react";
import * as defaults from "./defaults";
Expand Down
4 changes: 2 additions & 2 deletions src/contexts/UI/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2024 @polkadot-cloud/frontpage authors & contributors
// SPDX-License-Identifier: GPL-3.0-only
// Copyright 2024 @polkadot-ui/frontpage authors & contributors
// SPDX-License-Identifier: MIT

export interface UIContextInterface {
setSideMenu: (v: boolean) => void;
Expand Down
8 changes: 4 additions & 4 deletions src/docs/Assets/Extensions/ExtensionsJsx.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* @license Copyright 2024 @polkadot-cloud/frontpage authors & contributors
SPDX-License-Identifier: GPL-3.0-only */
/* @license Copyright 2024 @polkadot-ui/frontpage authors & contributors
SPDX-License-Identifier: MIT */

import { SimpleEditor } from "../../lib/SimpleEditor";
import { PolkadotVault } from "@polkadot-cloud/assets/extensions/jsx/PolkadotVault";
import { PolkadotVault } from "@polkadot-ui/assets/extensions/jsx/PolkadotVault";
import { Demo } from "../../lib/Demo";

export const ExtensionsJsx = () => {
const code = `import { PolkadotVault } from "@polkadot-cloud/assets/extensions/jsx/PolkadotVault";
const code = `import { PolkadotVault } from "@polkadot-ui/assets/extensions/jsx/PolkadotVault";
const App = () => (
<PolkadotVault />
Expand Down
Loading

0 comments on commit 981642f

Please sign in to comment.