mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 18:56:31 +00:00
Convert angular SafeWebview to typescript
Change-type: patch
This commit is contained in:
parent
146bfaa9de
commit
26d0e46367
@ -83,7 +83,7 @@ const app = angular.module('Etcher', [
|
|||||||
require('angular-ui-router'),
|
require('angular-ui-router'),
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
require('./components/safe-webview'),
|
require('./components/safe-webview').MODULE_NAME,
|
||||||
|
|
||||||
// Pages
|
// Pages
|
||||||
require('./pages/main/main.ts').MODULE_NAME,
|
require('./pages/main/main.ts').MODULE_NAME,
|
||||||
|
@ -14,21 +14,15 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict'
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @module Etcher.Components.SafeWebview
|
* @module Etcher.Components.SafeWebview
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const angular = require('angular')
|
import * as angular from 'angular';
|
||||||
const { react2angular } = require('react2angular')
|
import { react2angular } from 'react2angular';
|
||||||
|
import * as SafeWebview from './safe-webview';
|
||||||
|
|
||||||
const MODULE_NAME = 'Etcher.Components.SafeWebview'
|
export const MODULE_NAME = 'Etcher.Components.SafeWebview';
|
||||||
const SafeWebview = angular.module(MODULE_NAME, [])
|
const AngularSafeWebview = angular.module(MODULE_NAME, []);
|
||||||
|
|
||||||
SafeWebview.component(
|
AngularSafeWebview.component('safeWebview', react2angular(SafeWebview));
|
||||||
'safeWebview',
|
|
||||||
react2angular(require('./safe-webview.jsx'))
|
|
||||||
)
|
|
||||||
|
|
||||||
module.exports = MODULE_NAME
|
|
Loading…
x
Reference in New Issue
Block a user