Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
65ed2eb7
Commit
65ed2eb7
authored
Mar 30, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up Electron and API file
parent
8c07dfcb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
15 deletions
+4
-15
electron.js
Breeze.UI/electron.js
+0
-11
api.service.ts
Breeze.UI/src/app/shared/api/api.service.ts
+3
-3
index.html
Breeze.UI/src/index.html
+1
-1
No files found.
Breeze.UI/electron.js
View file @
65ed2eb7
...
...
@@ -36,12 +36,6 @@ function createWindow () {
mainWindow
.
webContents
.
openDevTools
();
}
// mainWindow.loadURL(url.format({
// pathname: path.join(__dirname, 'index.html'),
// protocol: 'file:',
// slashes: true
// }));
// Emitted when the window is closed.
mainWindow
.
on
(
'closed'
,
function
()
{
// Dereference the window object, usually you would store windows
...
...
@@ -55,7 +49,6 @@ function createWindow () {
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app
.
on
(
'ready'
,
function
()
{
startServer
()
createWindow
()
createTray
()
})
...
...
@@ -77,10 +70,6 @@ app.on('activate', function () {
}
})
function
startServer
()
{
// var startServer = edge.func('./assets/dll/Wallet.WebApi.dll');
}
function
createTray
()
{
//Put the app in system tray
const
Menu
=
electron
.
Menu
...
...
Breeze.UI/src/app/shared/api/api.service.ts
View file @
65ed2eb7
...
...
@@ -11,12 +11,12 @@ import { Mnemonic } from '../mnemonic';
export
class
ApiService
{
constructor
(
private
http
:
Http
)
{};
private
webApiUrl
=
'http://localhost:5000/'
;
private
webApiUrl
=
'http://localhost:5000/
api/v1
'
;
private
headers
=
new
Headers
({
'Content-Type'
:
'application/json'
});
isConnected
():
Observable
<
string
>
{
return
this
.
http
.
get
(
this
.
webApiUrl
+
'
api
/safe/connected'
)
.
get
(
this
.
webApiUrl
+
'/safe/connected'
)
.
map
(
data
=>
data
.
json
())
}
...
...
@@ -28,7 +28,7 @@ export class ApiService {
}
private
handleError
(
error
:
any
):
Promise
<
any
>
{
console
.
error
(
'An error occurred'
,
error
);
// for demo purposes only
console
.
error
(
'An error occurred'
,
error
);
return
Promise
.
reject
(
error
.
message
||
error
);
}
}
Breeze.UI/src/index.html
View file @
65ed2eb7
...
...
@@ -2,7 +2,7 @@
<html>
<head>
<meta
charset=
"utf-8"
>
<title>
Breeze
UI
</title>
<title>
Breeze
</title>
<base
href=
"/"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
</head>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment