curl -X POST "http://localhost:8080/admin/delete-extension?token={token}&namespace={namespace}&extension={extension}" The endpoint is defined in AdminAPI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const months = [...Array(12).keys()].map(key => new Date(0, key).toLocaleString('en', { month: 'long' })) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sc config LxssManager start=auto | |
| https://github.com/Microsoft/WSL/issues/3815#issuecomment-575927068 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const searchString = new URLSearchParams(object).toString(); | |
| https://stackoverflow.com/a/53171438/13835451 | |
| Only work for flat object, not nested ones |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ReactDOM.render( | |
| <React.StrictMode> | |
| <Provider store={store}> | |
| <BrowserRouter> | |
| <SnackbarProvider anchorOrigin={{ vertical: 'top', horizontal: 'right' }}> | |
| <App /> | |
| </SnackbarProvider> | |
| </BrowserRouter> | |
| </Provider> | |
| </React.StrictMode>, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const responseJson = pm.response.json(); | |
| const resJsonString = JSON.stringify(responseJson); | |
| const template = ` | |
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/json-viewer/jquery.json-viewer.css"> | |
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/json-viewer/jquery.json-viewer.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const responseJson = pm.response.json(); | |
| const resJsonString = JSON.stringify(responseJson); | |
| const template = ` | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/lib/jsonpath-picker.min.css"> | |
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/jsonpath-picker.min.js"></script> | |
| <style> | |
| pre { | |
| height: 90vh; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const responseJson = pm.response.json(); | |
| const resJsonString = JSON.stringify(responseJson); | |
| const template = ` | |
| <link rel="stylesheet" href="https://unpkg.com/big-json-viewer/dist/default.css"> | |
| <script src="https://unpkg.com/big-json-viewer/dist/browser-api.js"></script> | |
| <style> | |
| body { | |
| height: 100vh; |
Welcome to step by step hands-on guide to setup webpack in your upcoming typescript project. Please follow the steps and you should be able to create your own webpack project. Please download the source code from github.
You will learn below things:
- ✅Create a Typescript node.js project.
- ✅Install Dependencies with webpack & typescripts.
- ✅Use Webpack CLI to crate
webpack.config.jsfile and modify webpack.config.js based on our need.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function searchManga(title) { | |
| const result = await (await fetch(`https://api.mangadex.org/manga?title=${encodeURI(title)}`)).json(); | |
| return result.results.map(v => v.data) | |
| } | |
| async function getChapters(mangaID) { | |
| const result = await (await fetch(`https://api.mangadex.org/chapter/?manga=${mangaID}&limit=50`)).json(); | |
| return result.results; | |
| } | |
| async function getChapterInfo(chapterID) { | |
| const result = await (await fetch(`https://api.mangadex.org/chapter/${chapterID}`)).json(); |