Full styleguide now available via yarn styleguide
Due to a number of hacks, the style guide can be used to show Backbone views. This will allow a smooth path from the old way of doing things to the new.
This commit is contained in:
parent
893fb1cb9e
commit
1326b26585
21 changed files with 4006 additions and 363 deletions
42
test/legacy_bridge.js
Normal file
42
test/legacy_bridge.js
Normal file
|
@ -0,0 +1,42 @@
|
|||
|
||||
// Because we aren't hosting the styleguide in Electron, we can't rely on preload.js
|
||||
// to set things up for us. This gives us the minimum bar shims for everything it
|
||||
// provdes.
|
||||
//
|
||||
// Remember, the idea here is just to enable visual testing, no full functionality. Most
|
||||
// of thise can be very simple.
|
||||
|
||||
window.PROTO_ROOT = '/protos';
|
||||
window.nodeSetImmediate = () => {};
|
||||
|
||||
window.Signal = {};
|
||||
window.Signal.Backup = {};
|
||||
window.Signal.Crypto = {};
|
||||
window.Signal.Logs = {};
|
||||
window.Signal.Migrations = {};
|
||||
|
||||
window.Signal.React = window.Signal.React = {};
|
||||
|
||||
window.EmojiConvertor = function EmojiConvertor() {};
|
||||
window.EmojiConvertor.prototype.init_colons = () => {}
|
||||
window.EmojiConvertor.prototype.signalReplace = html => html;
|
||||
window.EmojiConvertor.prototype.replace_unified = string => string;
|
||||
window.EmojiConvertor.prototype.img_sets = {
|
||||
apple: {}
|
||||
};
|
||||
|
||||
window.i18n = () => '';
|
||||
|
||||
window.Signal.Migrations.V17 = {};
|
||||
window.Signal.OS = {};
|
||||
window.Signal.Types = {};
|
||||
window.Signal.Types.Attachment = {};
|
||||
window.Signal.Types.Errors = {};
|
||||
window.Signal.Types.Message = {
|
||||
initializeSchemaVersion: attributes => attributes,
|
||||
};
|
||||
window.Signal.Types.MIME = {};
|
||||
window.Signal.Types.Settings = {};
|
||||
window.Signal.Views = {};
|
||||
window.Signal.Views.Initialization = {};
|
||||
window.Signal.Workflow = {};
|
Loading…
Add table
Add a link
Reference in a new issue