Skip to content

Commit 356c247

Browse files
committed
Add more elements
1 parent e7ccc07 commit 356c247

62 files changed

Lines changed: 8361 additions & 3600 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ todo
1414
.cache/
1515
.spago/
1616
file/bundle/
17+
dist/
1718
file/upload
1819
spago.log
1920
*.keystore

index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { main } from './output/Client.Im.Main/index.js'
2+
3+
import './src/Client/css/base.css';
4+
import './src/Client/css/im.css';
5+
6+
main();
7+
8+
if (import.meta.webpackHot) {
9+
import.meta.webpackHot.accept()
10+
}

lynx.config.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { defineConfig } from '@lynx-js/rspeedy'
2+
3+
import { pluginQRCode } from '@lynx-js/qrcode-rsbuild-plugin'
4+
import { pluginReactLynx } from '@lynx-js/react-rsbuild-plugin'
5+
6+
export default defineConfig({
7+
source: {
8+
entry: './index.js',
9+
define: {
10+
'process.env.PRODUCTION': true,
11+
'process.env.VAPID_PUBLIC_KEY': "'something or the other'",
12+
'process.env.VAPID_PRIVATE_KEY': "'secret something or the other'",
13+
},
14+
},
15+
plugins: [
16+
pluginQRCode({
17+
schema(url) {
18+
// We use `?fullscreen=true` to open the page in LynxExplorer in full screen mode
19+
return `${url}?fullscreen=true`
20+
},
21+
}),
22+
pluginReactLynx(),
23+
],
24+
})

mobile.dhall

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./spago.dhall // { sources = [ "src/Shared/**/*.purs", "src/Client/**/*.purs" ] }

0 commit comments

Comments
 (0)