mirror of git3://git3.w3q/git3-cli
parent
7cefdd447b
commit
1c7cb54d41
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "git-remote-git3",
|
||||||
|
"type": "module",
|
||||||
|
"pkg": {
|
||||||
|
"targets": [
|
||||||
|
"node18-macos-x64",
|
||||||
|
"node18-linux-x64",
|
||||||
|
"node18-win-x64"
|
||||||
|
],
|
||||||
|
"outputPath": "bin"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "git3",
|
||||||
|
"type": "module",
|
||||||
|
"pkg": {
|
||||||
|
"targets": [
|
||||||
|
"node18-macos-x64",
|
||||||
|
"node18-linux-x64",
|
||||||
|
"node18-win-x64"
|
||||||
|
],
|
||||||
|
"outputPath": "bin"
|
||||||
|
}
|
||||||
|
}
|
@ -1,8 +1,8 @@
|
|||||||
import { log } from './log'
|
import { log } from './log.js'
|
||||||
import { superpathjoin as join } from 'superpathjoin'
|
import { superpathjoin as join } from 'superpathjoin'
|
||||||
import { ApiBaseParams } from './git-remote-helper'
|
import { ApiBaseParams } from './git-remote-helper.js'
|
||||||
import { Ref, Status, Storage } from '../storage/storage'
|
import { Ref, Status, Storage } from '../storage/storage.js'
|
||||||
import { GitUtils } from './git-utils'
|
import { GitUtils } from './git-utils.js'
|
||||||
class Git {
|
class Git {
|
||||||
gitdir: string
|
gitdir: string
|
||||||
remoteName: string
|
remoteName: string
|
@ -1,12 +1,11 @@
|
|||||||
|
|
||||||
import GitRemoteHelper from './git/git-remote-helper'
|
import GitRemoteHelper from './git-remote-helper.js'
|
||||||
import { ApiBaseParams } from './git/git-remote-helper'
|
import { ApiBaseParams } from './git-remote-helper.js'
|
||||||
import Git from './git/git'
|
import Git from './git.js'
|
||||||
// import { log } from './git/log'
|
import { ETHStorage } from '../storage/ETHStorage.js'
|
||||||
import { ETHStorage } from './storage/ETHStorage'
|
|
||||||
|
|
||||||
import nameServices from './config/name-services'
|
|
||||||
|
|
||||||
|
import nameServices from '../config/name-services.js'
|
||||||
|
// https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
|
||||||
let git: Git;
|
let git: Git;
|
||||||
GitRemoteHelper({
|
GitRemoteHelper({
|
||||||
env: process.env,
|
env: process.env,
|
@ -1,3 +0,0 @@
|
|||||||
export default {
|
|
||||||
"ETHStorage": '[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"bytes","name":"repoName","type":"bytes"},{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"uint256","name":"chunkId","type":"uint256"}],"name":"chunkStakeTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"repoName","type":"bytes"},{"internalType":"bytes","name":"name","type":"bytes"}],"name":"countChunks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"repoName","type":"bytes"}],"name":"createRepo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"repoName","type":"bytes"},{"internalType":"bytes","name":"name","type":"bytes"}],"name":"delRef","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"repoName","type":"bytes"},{"internalType":"bytes","name":"path","type":"bytes"}],"name":"download","outputs":[{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOptimize","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"repoName","type":"bytes"}],"name":"listRefs","outputs":[{"components":[{"internalType":"bytes20","name":"hash","type":"bytes20"},{"internalType":"bytes","name":"name","type":"bytes"}],"internalType":"struct Git3.refData[]","name":"list","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"nameToRefInfo","outputs":[{"internalType":"bytes20","name":"hash","type":"bytes20"},{"internalType":"uint96","name":"index","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"repoName","type":"bytes"},{"internalType":"bytes","name":"path","type":"bytes"}],"name":"remove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"repoNameToOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"repoNameToRefs","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"repoName","type":"bytes"},{"internalType":"bytes","name":"name","type":"bytes"},{"internalType":"bytes20","name":"refHash","type":"bytes20"}],"name":"setRef","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"repoName","type":"bytes"},{"internalType":"bytes","name":"name","type":"bytes"}],"name":"size","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"repoName","type":"bytes"},{"internalType":"bytes","name":"path","type":"bytes"}],"name":"stakeTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"repoName","type":"bytes"},{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upload","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"repoName","type":"bytes"},{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"uint256","name":"chunkId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"uploadChunk","outputs":[],"stateMutability":"payable","type":"function"}]'
|
|
||||||
}
|
|
@ -1,5 +0,0 @@
|
|||||||
<body>
|
|
||||||
|
|
||||||
"git3://" web3 git protocol, code for the open web
|
|
||||||
|
|
||||||
</body>
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue