Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #824

Merged
merged 71 commits into from
Feb 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
357dbb2
Update translation.json
mili-tan Feb 2, 2025
9021605
Update Chinese (zh-hant) translation
mili-tan Feb 2, 2025
a2fc431
Update Chinese (zh-hans) translation
mili-tan Feb 2, 2025
28317f0
Update en/zh-hans/zh-hant autoSwitchMediaType to autoSwitchMediaPostType
mili-tan Feb 2, 2025
fe49214
Merge pull request #823 from milbk/develop
totegamma Feb 2, 2025
e9a3e0e
init new client
totegamma Jan 28, 2025
cd78c36
update client import
totegamma Jan 28, 2025
800a6fc
wip
totegamma Jan 28, 2025
9e634b9
update client
totegamma Feb 2, 2025
df19d01
wip
totegamma Feb 2, 2025
ad7c3d5
wip
totegamma Feb 2, 2025
2573cd9
wip
totegamma Feb 2, 2025
da326c8
fixes
totegamma Feb 3, 2025
ed3dc96
small fix
totegamma Feb 3, 2025
56742c2
rebase
totegamma Feb 3, 2025
411da2c
fix masterkey client setup
totegamma Feb 3, 2025
a5ed233
fix timeline domain resolvation
totegamma Feb 3, 2025
e8d887e
update timeline id handling
totegamma Feb 3, 2025
7e56bb1
fix registration
totegamma Feb 3, 2025
21711f6
fix ci
totegamma Feb 3, 2025
17598b8
fix ci
totegamma Feb 3, 2025
f94ab57
fix timeline re-rendering
totegamma Feb 4, 2025
fc50c27
clarify timeline id variation
totegamma Feb 4, 2025
cf8b687
fix client
totegamma Feb 4, 2025
8af6176
remove client caching of message
totegamma Feb 4, 2025
3f9569f
fix invalideateMessage call
totegamma Feb 4, 2025
cfa3c3f
use workspace
totegamma Feb 4, 2025
9d92949
update lint-staged settings
totegamma Feb 4, 2025
c2ac848
apply prettier
totegamma Feb 4, 2025
1ba277f
add link
totegamma Feb 4, 2025
d6a8be4
fix ci
totegamma Feb 4, 2025
8ffef5f
fix ci
totegamma Feb 4, 2025
30abfd2
update dist structure
totegamma Feb 4, 2025
5c57634
update build settings
totegamma Feb 4, 2025
aba1b73
add link
totegamma Feb 4, 2025
bda4ff3
update packages versions
totegamma Feb 5, 2025
7245829
fix 404 handling
totegamma Feb 5, 2025
82f4789
add indexed db resetter
totegamma Feb 5, 2025
04a6e1a
reset indexed-db on logout
totegamma Feb 5, 2025
c98e488
fix registration
totegamma Feb 5, 2025
381f2c9
upgrade lib
totegamma Feb 5, 2025
3a57b85
update subscription cache handling
totegamma Feb 5, 2025
48a036d
small fix
totegamma Feb 5, 2025
d1fa4f4
update deps
totegamma Feb 5, 2025
a920aa9
support offline remote timeline reading
totegamma Feb 6, 2025
1621fc7
add message memory cache
totegamma Feb 6, 2025
2e4f758
bump up lib version
totegamma Feb 6, 2025
0ffad31
specify no-cache for editors
totegamma Feb 6, 2025
6551df1
tweak
totegamma Feb 6, 2025
1e9501b
fix updating timeline parameters
totegamma Feb 6, 2025
e844a31
Merge pull request #818 from totegamma/feat/replace-client
totegamma Feb 6, 2025
f4ebc2c
update build-storybook script
totegamma Feb 6, 2025
df47abe
fix getMessage
totegamma Feb 6, 2025
16d2bfa
replace keyword stream to timeline
totegamma Feb 6, 2025
62e757d
refactor message components. close #778
totegamma Feb 6, 2025
37be239
fix defaultPostStream resolvation
totegamma Feb 7, 2025
7391350
update fetchWithCredential return type
totegamma Feb 7, 2025
f7c598d
bump up lib version
totegamma Feb 7, 2025
31a6edd
force refresh user/timeline on access one's page
totegamma Feb 7, 2025
ea9a623
update message 404 view
totegamma Feb 7, 2025
919d43e
tweak style
totegamma Feb 7, 2025
b0caf31
fix association style
totegamma Feb 7, 2025
1818183
fix message invalidation handling
totegamma Feb 8, 2025
e56a8ff
remove v0 import
totegamma Feb 8, 2025
96452d8
update account migration
totegamma Feb 8, 2025
c5f12be
update timeline card
totegamma Feb 8, 2025
e14d970
auto reload for specific errors. close #773
totegamma Feb 8, 2025
d7e2a9a
add ap timeline fix button
totegamma Feb 8, 2025
cc083d5
update userpicker
totegamma Feb 8, 2025
8fe3087
add entity meta editor
totegamma Feb 8, 2025
0e6ebc0
tweak settings layout
totegamma Feb 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 0 additions & 29 deletions .eslintrc.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:

- name: Install dependencies
run: |
npm i corepack@latest -g
corepack enable pnpm
pnpm i

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,24 @@ jobs:

- name: Install dependencies
run: |
npm i corepack@latest -g
corepack enable pnpm
pnpm i

- name: build project
run: pnpm build

- name: Install Playwright Browsers
working-directory: app
run: pnpm exec playwright install --with-deps ${{ matrix.browser }}

- name: Run Playwright tests
working-directory: app
run: pnpm exec playwright test --project=${{ matrix.project }}

- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-${{ matrix.project }}
path: playwright-report/
path: app/playwright-report/
retention-days: 30
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ package-lock.yaml
.wrangler
test-results
playwright-report
storybook-static

dev-dist
70 changes: 0 additions & 70 deletions .storybook/preview.tsx

This file was deleted.

6 changes: 2 additions & 4 deletions .storybook/main.ts → app/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import type { StorybookConfig } from '@storybook/react-vite'
const config: StorybookConfig = {
stories: ['../src/**/*.stories.ts', "../src/**/*.stories.tsx"],
stories: ['../src/**/*.stories.ts', '../src/**/*.stories.tsx'],
addons: ['@storybook/addon-essentials'],
framework: {
name: '@storybook/react-vite',
options: {}
},
docs: {
autodocs: 'tag'
}
docs: {}
}
export default config
File renamed without changes.
70 changes: 70 additions & 0 deletions app/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import React from 'react'
import { Preview } from '@storybook/react'
import { Themes, loadConcurrentTheme } from '../src/themes'
import { Box, CssBaseline, Paper, ThemeProvider, Typography } from '@mui/material'

const themeNames = Object.keys(Themes)

const preview: Preview = {
parameters: {
layout: 'fullscreen'
},
globalTypes: {
theme: {
description: 'Global theme for components',
defaultValue: 'All',
toolbar: {
title: 'Theme',
icon: 'circlehollow',
dynamicTitle: true,
items: ['All', ...themeNames]
}
}
},
decorators: [
(StoryFn, context) => {
const themeName = context.globals.theme
const previewTarget = Array()
if (themeName === 'All') {
themeNames.forEach((themeName) => {
previewTarget.push(loadConcurrentTheme(themeName, {}))
})
} else {
previewTarget.push(loadConcurrentTheme(themeName, {}))
}
return (
<Box
sx={{
display: 'flex',
flexDirection: 'column',
height: '100vh'
}}
>
{previewTarget.map((theme) => (
<ThemeProvider theme={theme}>
<CssBaseline />
<Box
sx={{
backgroundColor: 'background.default',
p: 2,
flex: 1
}}
>
<Paper
sx={{
p: 2
}}
>
<Typography>{theme.meta.name}</Typography>
<StoryFn />
</Paper>
</Box>
</ThemeProvider>
))}
</Box>
)
}
]
}

export default preview
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
1 change: 1 addition & 0 deletions app/dist
33 changes: 23 additions & 10 deletions index.html → app/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<!--
______ __
/ ____/___ ____ ______________ / /_
Expand All @@ -13,25 +13,38 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/icon" href="/favicon.ico" />
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap" rel="stylesheet">
<meta
name="viewport"
content="viewport-fit=cover, width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
/>
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap" rel="stylesheet" />
<title>Concrnt | コンカレント</title>
<meta name="description" content="Concrntはあなたの世界をちょっとだけより豊かにする、新しい時代のSNSです" data-rh="true" />
<meta
name="description"
content="Concrntはあなたの世界をちょっとだけより豊かにする、新しい時代のSNSです"
data-rh="true"
/>
<meta property="og:title" content="Concrnt | コンカレント" />
<meta property="og:description" content="Concrntはあなたの世界をちょっとだけより豊かにする、新しい時代のSNSです" />
<meta
property="og:description"
content="Concrntはあなたの世界をちょっとだけより豊かにする、新しい時代のSNSです"
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://concrnt.world/" /><meta property="og:image" content="https://concrnt.world/concrnt.png"/>
<meta property="og:url" content="https://concrnt.world/" />
<meta property="og:image" content="https://concrnt.world/concrnt.png" />
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Y4V0V7XYWX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())

gtag('config', 'G-Y4V0V7XYWX', {
//debug_mode: true,
send_page_view: false
});
})
</script>
</head>
<body>
Expand Down
108 changes: 108 additions & 0 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"name": "concrnt-world",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite dev",
"build": "pnpm prebuild && tsc && vite build && pnpm postbuild",
"postbuild": "touch dist/.gitkeep",
"prebuild": "./prebuild.sh",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"test": "playwright test --project=chromium",
"test-all": "playwright test"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.592.0",
"@aws-sdk/s3-request-presigner": "^3.592.0",
"@concrnt/worldlib": "workspace:*",
"@cosmjs/encoding": "^0.32.4",
"@cosmjs/proto-signing": "^0.32.4",
"@cosmjs/stargate": "^0.32.4",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@fortawesome/free-brands-svg-icons": "^6.7.2",
"@fortawesome/react-fontawesome": "^0.2.2",
"@google/model-viewer": "^4.0.0",
"@mui/icons-material": "^6.4.3",
"@mui/material": "^6.4.3",
"@rjsf/core": "^5.24.3",
"@rjsf/mui": "^5.24.3",
"@rjsf/utils": "^5.24.3",
"@rjsf/validator-ajv8": "^5.24.3",
"@zxing/browser": "^0.1.4",
"@zxing/library": "^0.20.0",
"blurhash": "^2.0.5",
"boring-avatars": "github:totegamma/boring-avatars#49ed345027665e1d6135ae6b0b6f2a442ff52915",
"cosmjs-types": "^0.9.0",
"elliptic": "^6.5.4",
"ethers": "^6.3.0",
"fuzzysort": "^2.0.4",
"html2canvas": "^1.4.1",
"i18next": "^23.5.1",
"i18next-browser-languagedetector": "^7.1.0",
"i18next-http-backend": "^2.2.2",
"json-schema-to-typescript": "^13.0.1",
"jspdf": "^2.5.1",
"notistack": "^3.0.1",
"protobufjs": "^7.3.2",
"react": "^18.2.0",
"react-blurhash": "^0.3.0",
"react-colorful": "^5.6.1",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.10",
"react-helmet-async": "^2.0.5",
"react-i18next": "^13.2.2",
"react-icons": "^5.2.1",
"react-markdown": "^8.0.7",
"react-parallax-tilt": "^1.7.146",
"react-qr-code": "^2.0.12",
"react-router-dom": "^6.11.0",
"react-syntax-highlighter": "^15.5.0",
"react-use-websocket": "^4.3.1",
"react-zoom-pan-pinch": "^3.4.2",
"rehype-raw": "^6.1.1",
"rehype-sanitize": "^5.0.1",
"remark-breaks": "^3.0.2",
"textarea-caret": "^3.1.0",
"unist-util-inspect": "^8.0.0",
"unist-util-visit": "^5.0.0",
"unplugin-info": "^1.2.1",
"use-sound": "^4.0.1",
"uuid": "^9.0.0",
"virtua": "^0.33.5",
"vite": "^6.0.11",
"vite-plugin-pwa": "^0.21.1"
},
"devDependencies": {
"@keplr-wallet/types": "^0.12.114",
"@playwright/test": "^1.46.1",
"@storybook/addon-essentials": "^8.5.3",
"@storybook/react": "^8.5.3",
"@storybook/react-vite": "^8.5.3",
"@types/elliptic": "^6.4.14",
"@types/node-forge": "^1.3.1",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"@types/react-syntax-highlighter": "^15.5.6",
"@types/textarea-caret": "^3.0.1",
"@types/uuid": "^9.0.1",
"@types/ws": "^8.5.4",
"@vitejs/plugin-react-swc": "^3.7.2",
"preset": "link:@storybook/react-vite/preset",
"prop-types": "15.8.1",
"rollup-plugin-visualizer": "^5.14.0",
"storybook": "^8.5.3",
"workbox-precaching": "^7.3.0"
},
"packageManager": "pnpm@8.6.1",
"volta": {
"node": "22.12.0"
},
"eslintConfig": {
"extends": [
"plugin:storybook/recommended"
]
}
}
Loading