Skip to content

Commit

Permalink
Merge pull request #39 from ArcaneAssemblers/client-redux
Browse files Browse the repository at this point in the history
New wrapper page for ren-client
  • Loading branch information
willemolding authored Dec 29, 2023
2 parents af71c4a + 3bb40f9 commit 49314df
Show file tree
Hide file tree
Showing 55 changed files with 18,487 additions and 926 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build-client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: build-client

on:
push:
pull_request:

jobs:
my-job:
name: my-job
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./client

steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1

- run: bun install
- run: bun run build
2 changes: 1 addition & 1 deletion .github/workflows/contract-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: curl -L https://install.dojoengine.org | bash
- run: /home/runner/.config/.dojo/bin/dojoup --version v0.4.2
- run: /home/runner/.config/.dojo/bin/dojoup --version v0.3.15
- run: |
/home/runner/.config/.dojo/bin/sozo build
/home/runner/.config/.dojo/bin/sozo test
7 changes: 3 additions & 4 deletions client/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ VITE_PUBLIC_ETH_CONTRACT_ADDRESS=0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c74
VITE_PUBLIC_ACCOUNT_CLASS_HASH=0x04d07e40e93398ed3c76981e72dd1fd22557a78ce36c0515f679e27f0bb5bc5f
VITE_PUBLIC_MASTER_ADDRESS=0x517ececd29116499f4a1b64b094da79ba08dfd54a3edaa316134c41f8160973
VITE_PUBLIC_MASTER_PRIVATE_KEY=0x1800000000300000180000000000030000000000003006001800006600
VITE_PUBLIC_WORLD_ADDRESS=0x256158226e155c1bea0cce8259929432b80bb3844c505121f2aaeede72421e4
VITE_PUBLIC_SPELLCRAFTER_SYSTEMS_ADDRESS=0x6491263c799d1db469ff4d9ee8fed8a34b2410f1d5bdf51b72cfc8d97480f03
VITE_PUBLIC_NODE_URL=http://localhost:5050
VITE_PUBLIC_TORII=http://localhost:8080
VITE_PUBLIC_WORLD_ADDRESS=0x730cbe05cf01c05145b5bcd1c729bcb43de61ab6cdc62ee7be536d669a1ee7c
VITE_PUBLIC_NODE_URL = http://localhost:5050
VITE_PUBLIC_TORII = http://0.0.0.0:8080/graphql
2 changes: 1 addition & 1 deletion client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ dist-ssr
*.ntvs*
*.njsproj
*.sln
*.sw?
*.sw?
21 changes: 21 additions & 0 deletions client/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Dojo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Binary file modified client/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion client/codegen.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
schema: 'http://localhost:8080',
schema: "http://127.0.0.1:8080/graphql",
documents: 'src/**/*.graphql',
generates: {
'src/generated/graphql.ts': {
Expand Down
3 changes: 1 addition & 2 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>Arcane Assembler</title>
</head>
<body>
<div id="root"></div>
Expand Down
Loading

0 comments on commit 49314df

Please sign in to comment.