Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 2558bb9

Browse files
committed
enable cache, fix arweave init, fix repo validation
1 parent b470a78 commit 2558bb9

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

src/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
import { run } from "./runApp"
33
import Arweave from "arweave/web"
44

5-
export const arweave = Arweave.init({})
5+
export const arweave = Arweave.init({
6+
host: "arweave.net",
7+
port: 443,
8+
protocol: "https"
9+
})
610

711
run()

src/ui/components/argit/newRepoForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ class NewRepoForm extends Component<NewRepoFormProps, NewRepoFormState> {
4343
}
4444

4545
validate = () => {
46-
const errors = { name: "" }
46+
let errors = { name: "" }
4747
const { repo } = this.state
4848
console.log(this.checkIfExists(repo.name))
4949
if (repo.name.trim() === "") {
5050
errors.name = "Repository Name is required"
51-
} else if (/[A-Za-z0-9_.-]*/.test(repo.name)) {
51+
} else if (!/[A-Za-z0-9_.-]*/.test(repo.name)) {
5252
errors.name =
5353
"Repository name should only include alphanumeric characters, _, . or -"
5454
} else if (this.checkIfExists(repo.name)) {

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ module.exports = {
241241
optimization: {
242242
minimizer: [
243243
new UglifyJsPlugin({
244-
cache: false,
244+
cache: true,
245245
parallel: true,
246246
sourceMap: false // set to true if you want JS source maps
247247
}),

0 commit comments

Comments
 (0)