Skip to content

Commit

Permalink
abrakadabra deploy hoja
Browse files Browse the repository at this point in the history
  • Loading branch information
ankushKun committed Dec 5, 2023
1 parent dbe0471 commit 4f49de8
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 175 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ module.exports = {
{ allowConstantExport: true },
],
},
}
}
208 changes: 44 additions & 164 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"@monaco-editor/react": "^4.6.0",
"arweave-wallet-connector": "^1.0.2",
"arweave-wallet-kit": "^1.0.3",
"arweavekit": "^1.5.1",
"eslint": "^8.55.0",
"file-saver": "^2.0.5",
"jszip": "^3.10.1",
"react": "^18.2.0",
Expand All @@ -28,7 +28,6 @@
"@typescript-eslint/parser": "^6.10.0",
"@vitejs/plugin-react": "^4.2.0",
"autoprefixer": "^10.4.16",
"eslint": "^8.53.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.4",
"postcss": "^8.4.32",
Expand Down
1 change: 0 additions & 1 deletion src/components/Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useState } from 'react';
import { Link } from 'react-router-dom';
import { contractSrc, stateSrc } from '../templates/hello';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'


const Navbar = () => {
return (
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Deploy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const Deploy = ({ setShowSidebar }: { setShowSidebar: any }) => {

async function deploy() {
if (!walletUploaded && !useWallet) return alert("please upload a wallet")
if (deployTarget == "local") {
if (deployEnv == "local") {
console.log("deploying to localhost")
console.log(src)
console.log(state)
Expand All @@ -80,7 +80,7 @@ const Deploy = ({ setShowSidebar }: { setShowSidebar: any }) => {
setContractTxID(contract.contractTxId)
const deployments = sessionStorage.getItem("deployments")
if (!deployments) {
sessionStorage.setItem("deployments", JSON.stringify({ [contractTarget]: { id: contract.contractTxId, env: deployTarget, functions: extractFunctions(src) } }))
sessionStorage.setItem("deployments", JSON.stringify({ [contractTarget]: { id: contract.contractTxId, env: deployEnv, functions: extractFunctions(src) } }))
}
else {
const parsed = JSON.parse(deployments)
Expand Down
9 changes: 5 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
"jsx": "react-jsx",

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
"strict": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": false,
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
Expand Down

0 comments on commit 4f49de8

Please sign in to comment.