8000 GitHub - NamPNQ/Restfox: Offline-first web HTTP client · GitHub
[go: up one dir, main page]

Skip to content
NamPNQPublic

About

Offline-first web HTTP client

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Latest commit

 

History

234 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
< 8000 /div>
 
 
 
 
 
 

Repository files navigation

Restfox

Offline-first web HTTP client

Screenshots

Response History

Context Menu

Environment Variables

Plugins

ui

Development

npm run dev

Distribution

npm run build

electron

To upgrade electron to latest version

npm install --save-dev electron@latest @electron-forge/cli@latest @electron-forge/maker-deb@latest @electron-forge/maker-rpm@latest @electron-forge/maker-squirrel@latest @electron-forge/maker-zip@latest

Development

npm run start

Distribution

npm run make

or

npm run publish

tauri

fetch polyfill for tauri

After ui is built, go to the ui/assets/index.[hash].js file and add this code at the top of the file:

export async function fetch(input, init) {
    const fetch = window.__TAURI__.http.fetch

    const params = {
        ...init,
        body: {
            type: 'Text',
            payload: init.body
        }
    };

    if(params.body.payload instanceof URLSearchParams) {
        params.body.payload = params.body.payload.toString()
    }

    if(init.method === 'GET' || 'body' in init === false || init.body === null) {
        delete params.body
    }

    const res = await fetch(input.toString(), params)

    return new Response(JSON.stringify(res.data), res)
}

Development

npm run dev

Distribution

npm run build

About

Offline-first web HTTP client

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0