4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/isomorfeus/mailer/imports.rb', line 4
def self.add
Isomorfeus.assets['mail.js'].add_js_import('redux', 'Redux', '*')
Isomorfeus.assets['mail.js'].add_js_import('preact', 'Preact', '*')
Isomorfeus.assets['mail.js'].add_js_import('preact/hooks', 'PreactHooks', '*')
Isomorfeus.assets['mail.js'].add_js_import('wouter-preact', nil, ['Router', 'Link', 'Redirect', 'Route', 'Switch'])
Isomorfeus.assets['mail.js'].add_js_import('preact-render-to-string', 'Preact', ['render'], nil, 'renderToString')
Isomorfeus.assets['mail.js'].add_js_import('wouter-preact/static-location', 'staticLocationHook')
Isomorfeus.assets['mail.js'].add_js_import('ws', 'WebSocket')
if Dir.exist?(Isomorfeus.app_root)
Isomorfeus.assets['mail.js'].add_ruby_import('mail_loader') if File.exist?(File.join(Isomorfeus.app_root, 'mail_loader.rb'))
Isomorfeus.assets['mail.js'].add_ruby_import('isomorfeus/preact/ssr/top_level')
Isomorfeus.assets['mail.js'].add_ruby_import('isomorfeus/preact/ssr/render_core')
Isomorfeus.assets['mail.js'].add_ruby_import('isomorfeus/preact/ssr/history')
Isomorfeus.assets['mail.js'].add_ruby_import('isomorfeus/transport/ssr_login')
end
end
|