Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changelog/252.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Introduce Oasis UI Library
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ pnpm-lock.yaml

# markdownlint formatted files
*.md

ui-library
2 changes: 2 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up Node.js 20
uses: actions/setup-node@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up Node.js 20
uses: actions/setup-node@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cloudflare-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
# Checkout pull request HEAD commit instead of merge commit.
with:
ref: ${{ github.event.pull_request.head.sha }}
submodules: 'recursive'
- name: Set up Node.js 20
uses: actions/setup-node@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up Node.js 20
uses: actions/setup-node@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "ui-library"]
path = ui-library
url = https://github.com/oasisprotocol/ui-library.git
2 changes: 1 addition & 1 deletion home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>ROSE App</title>
</head>
<body>
<div id="root"></div>
<div id="root" class="dark"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
3 changes: 3 additions & 0 deletions home/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@
"@oasisprotocol/rose-app-stake": "workspace:*",
"@oasisprotocol/rose-app-ui": "workspace:*",
"@oasisprotocol/rose-app-wrap": "workspace:*",
"@oasisprotocol/ui-library": "file:../ui-library",
"@rainbow-me/rainbowkit": "^2.1.2",
"@tailwindcss/vite": "^4.1.7",
"@tanstack/react-query": "5.45.1",
"fathom-client": "^3.7.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-responsive": "^9.0.2",
"react-router-dom": "^6.22.2",
"tailwindcss": "^4.1.7",
"viem": "^2.23.1",
"wagmi": "^2.14.11"
},
Expand Down
1 change: 1 addition & 0 deletions home/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { createBrowserRouter, RouterProvider } from 'react-router-dom'
import { App } from './App.tsx'
import { ProvidersWithSidebar } from './ProvidersWithSidebar.tsx'

import './styles/global.css'
import '@oasisprotocol/rose-app-ui/core/index.css'

const router = createBrowserRouter([
Expand Down
9 changes: 9 additions & 0 deletions home/src/styles/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@import '@oasisprotocol/ui-library/src/styles/global.css';

@source "../../node_modules/@oasisprotocol/ui-library";
@source "../../../ui/src";
@source "../"; /* this is home */
@source "../../../discover/src";
@source "../../../stake/src";
@source "../../../move/src";
@source "../../../wrap/src";
3 changes: 2 additions & 1 deletion home/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import { execSync } from 'node:child_process'
import { defineConfig } from 'vite'
import svgr from 'vite-plugin-svgr'
import react from '@vitejs/plugin-react-swc'
import tailwindcss from '@tailwindcss/vite'
import { nodePolyfills } from 'vite-plugin-node-polyfills'
import { version } from '../package.json'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [nodePolyfills(), svgr(), react()],
plugins: [nodePolyfills(), svgr(), react(), tailwindcss()],
base: '/',
build: {
sourcemap: true,
Expand Down
Loading