mirror of
https://github.com/got-feedBack/feedBack.git
synced 2026-09-13 16:30:09 +00:00
rename: slopsmith -> feedBack, byron -> got-feedBack
Renames across the entire codebase: - slopsmith/Slopsmith/SLOPSMITH/SlopSmith -> feedBack/FeedBack/FEEDBACK/FeedBack - byron/Byron/Byrongamatos -> got-feedBack/got-feedBack/got-feedBack - /home/byron/ -> /opt/got-feedBack/ - byron@ougsoft.com -> hi@got-feedBack.org - github.com/byrongamatos/ -> github.com/got-feedback/ - com.byron. -> com.got-feedback. - SLOPSMITH_ env vars -> FEEDBACK_ with backward-compat fallback - Protocol/storage strings migrated with read-old/write-new pattern - window.slopsmith JS API -> window.feedBack (canonical) + backward-compat alias Refs: #rename-slopsmith
This commit is contained in:
committed by
byrongamatos
parent
fdbab2a9e1
commit
d3037b903e
@@ -2,12 +2,12 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
window.slopsmith = window.slopsmith || {};
|
||||
const capabilities = window.slopsmith.capabilities;
|
||||
window.feedBack = window.feedBack || {};
|
||||
const capabilities = window.feedBack.capabilities;
|
||||
if (!capabilities || capabilities.version !== 1) return;
|
||||
if (window.slopsmith.libraryProviders && window.slopsmith.libraryProviders.version === 1) return;
|
||||
if (window.feedBack.libraryProviders && window.feedBack.libraryProviders.version === 1) return;
|
||||
|
||||
const PROVIDER_KEY = 'slopsmith.libProvider';
|
||||
const PROVIDER_KEY = 'feedBack.libProvider';
|
||||
const LOCAL_PROVIDER = Object.freeze({
|
||||
id: 'local',
|
||||
label: 'My Library',
|
||||
@@ -302,17 +302,17 @@
|
||||
};
|
||||
|
||||
function _contributeDiagnostics() {
|
||||
const diagnostics = window.slopsmith && window.slopsmith.diagnostics;
|
||||
const diagnostics = window.feedBack && window.feedBack.diagnostics;
|
||||
if (diagnostics && typeof diagnostics.contribute === 'function') {
|
||||
try {
|
||||
diagnostics.contribute('library-capability', {
|
||||
schema: 'slopsmith.library_capability.v1',
|
||||
schema: 'feedBack.library_capability.v1',
|
||||
..._snapshot(),
|
||||
});
|
||||
} catch (_) { /* diagnostics must not break the library */ }
|
||||
}
|
||||
}
|
||||
|
||||
window.slopsmith.libraryProviders = providerApi;
|
||||
window.feedBack.libraryProviders = providerApi;
|
||||
_contributeDiagnostics();
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user