Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
cwrc-git-dialogs
Advanced tools
A suite of dialogs for loading, saving, and listing files. Meant to be used in conjunction with CWRC-GitWriter. Relies upon an instance of CWRC-GitServer to make calls to GitHub.
The CWRC-GitWriter Sandbox is running an instance of CWRC-GitWriter, which uses the NPM package published from this repository along with the code in CWRC-WriterBase. There is a corresponding server component running CWRC-GitServer and CWRC-Git. The same code is easily (for someone with modest development experience) installed on any server to run your own instance. If you are looking to put together your own CWRC-Writer, CWRC-GitWriter is a good place to start.
npm install cwrc-git-dialogs
Spawns a popup prompting the user to save or pull request the current document to a GitHub repository.
Spawns a popup prompting the user to load a document from a GitHub repository.
Returns a string representing the URI of the current document.
Returns an object with the following properties: userId, userName, userUrl.
Removes the GitHub OAuth token and reloads the page.
Sets the URL for the location of the CWRC-GitServer instance.
Whether to use GitLab API formatted calls. Defaults to false.
When setting up CWRC-Writer, you register this module with a CWRC-WriterBase instance by passing it as a property on the config
object used when instantiating the instance. After registering the module, CWRC-WriterBase will call this module's methods as required.
A simplified example:
import GitStorageDialogs from "cwrc-git-dialogs";
const config = {
storageDialogs: GitStorageDialogs
};
const CWRCWriter = require("cwrc-writer-base");
const writer = new CWRCWriter(config);
See https://github.com/cwrc/CWRC-GitWriter/blob/master/src/js/app.js for the full example.
CWRC-Writer-Dev-Docs explains how to work with CWRC-Writer GitHub repositories, including this one.
FAQs
Dialogs for listing, loading, and saving CWRC XML documents.
The npm package cwrc-git-dialogs receives a total of 77 weekly downloads. As such, cwrc-git-dialogs popularity was classified as not popular.
We found that cwrc-git-dialogs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.