-
+
+
-
-
Nebulosa
-
v0.1.0 ・ Ceres
-
© 2023 Tiago Melo 🇧🇷
+
+
Nebulosa v0.1.0 (Ceres)
+
© 2023 Tiago Melo 🇧🇷
This program comes with absolutely no warranty and is provided on an 'as is' basis.
+
+
+
\ No newline at end of file
diff --git a/desktop/src/app/about/about.component.ts b/desktop/src/app/about/about.component.ts
index f0a98bce2..f767efea7 100644
--- a/desktop/src/app/about/about.component.ts
+++ b/desktop/src/app/about/about.component.ts
@@ -1,5 +1,5 @@
import { Component } from '@angular/core'
-import { Title } from '@angular/platform-browser'
+import { AppComponent } from '../app.component'
@Component({
selector: 'app-about',
@@ -8,7 +8,7 @@ import { Title } from '@angular/platform-browser'
})
export class AboutComponent {
- constructor(title: Title) {
- title.setTitle('About')
+ constructor(app: AppComponent) {
+ app.title = 'About'
}
}
diff --git a/desktop/src/app/app-routing.module.ts b/desktop/src/app/app-routing.module.ts
index d74cebc32..d2c144b9b 100644
--- a/desktop/src/app/app-routing.module.ts
+++ b/desktop/src/app/app-routing.module.ts
@@ -12,7 +12,6 @@ import { HomeComponent } from './home/home.component'
import { ImageComponent } from './image/image.component'
import { INDIComponent } from './indi/indi.component'
import { MountComponent } from './mount/mount.component'
-import { SplashComponent } from './splash/splash.component'
const routes: Routes = [
{
@@ -64,10 +63,6 @@ const routes: Routes = [
path: 'about',
component: AboutComponent,
},
- {
- path: 'splash',
- component: SplashComponent,
- },
]
@NgModule({
diff --git a/desktop/src/app/app.component.html b/desktop/src/app/app.component.html
index e06898728..8d6ffc830 100644
--- a/desktop/src/app/app.component.html
+++ b/desktop/src/app/app.component.html
@@ -1,2 +1,14 @@
-
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/desktop/src/app/app.component.ts b/desktop/src/app/app.component.ts
index e5d5ad05d..fd5c414a4 100644
--- a/desktop/src/app/app.component.ts
+++ b/desktop/src/app/app.component.ts
@@ -1,26 +1,63 @@
-import { Component } from '@angular/core'
+import { AfterViewInit, Component } from '@angular/core'
+import { Title } from '@angular/platform-browser'
import { APP_CONFIG } from '../environments/environment'
import { ElectronService } from '../shared/services/electron.service'
+import { ActivatedRoute } from '@angular/router'
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
-export class AppComponent {
+export class AppComponent implements AfterViewInit {
+
+ pinned = false
+ maximizable = false
+ backgroundColor = '#1A237E'
+
+ get title() {
+ return this.windowTitle.getTitle()
+ }
+
+ set title(value: string) {
+ this.windowTitle.setTitle(value)
+ }
constructor(
- electronService: ElectronService
+ private windowTitle: Title,
+ private route: ActivatedRoute,
+ private electronService: ElectronService,
) {
console.info('APP_CONFIG', APP_CONFIG)
if (electronService.isElectron) {
- console.info(process.env)
console.info('Run in electron')
- console.info('Electron ipcRenderer', electronService.ipcRenderer)
- console.info('NodeJS childProcess', electronService.childProcess)
} else {
console.info('Run in browser')
}
}
+
+ ngAfterViewInit() {
+ this.route.queryParams.subscribe(e => {
+ this.maximizable = e.resizable === 'true'
+ })
+ }
+
+ pin() {
+ this.pinned = !this.pinned
+ if (this.pinned) this.electronService.sendSync('PIN_WINDOW')
+ else this.electronService.sendSync('UNPIN_WINDOW')
+ }
+
+ minimize() {
+ this.electronService.sendSync('MINIMIZE_WINDOW')
+ }
+
+ maximize() {
+ this.electronService.sendSync('MAXIMIZE_WINDOW')
+ }
+
+ close() {
+ this.electronService.sendSync('CLOSE_WINDOW')
+ }
}
diff --git a/desktop/src/app/app.module.ts b/desktop/src/app/app.module.ts
index 7b0891aa9..907cd712f 100644
--- a/desktop/src/app/app.module.ts
+++ b/desktop/src/app/app.module.ts
@@ -53,7 +53,6 @@ import { ImageComponent } from './image/image.component'
import { INDIComponent } from './indi/indi.component'
import { INDIPropertyComponent } from './indi/property/indi-property.component'
import { MountComponent } from './mount/mount.component'
-import { SplashComponent } from './splash/splash.component'
@NgModule({
declarations: [
@@ -73,7 +72,6 @@ import { SplashComponent } from './splash/splash.component'
MountComponent,
GuiderComponent,
DialogMenuComponent,
- SplashComponent,
LocationDialog,
EnvPipe,
WinPipe,
diff --git a/desktop/src/app/atlas/atlas.component.html b/desktop/src/app/atlas/atlas.component.html
index d2ca92900..731dbfb79 100644
--- a/desktop/src/app/atlas/atlas.component.html
+++ b/desktop/src/app/atlas/atlas.component.html
@@ -5,15 +5,16 @@
-
+
-
+
@@ -99,7 +100,7 @@
[pageLinks]="3" [showCurrentPageReport]="true" currentPageReportTemplate="{first}-{last} / {totalRecords}">
- Name |
+ Name |
Type |
Mag. |
Const. |
@@ -107,7 +108,7 @@
- {{ item.names }} |
+ {{ item.name.replaceAll('|', ' · ') }} |
{{ item.type | enum }} |
{{ item.magnitude < 99 ? item.magnitude.toFixed(1) : '-' }} |
{{ item.constellation }} |
@@ -138,7 +139,7 @@
[pageLinks]="3" [showCurrentPageReport]="true" currentPageReportTemplate="{first}-{last} / {totalRecords}">
- Name |
+ Name |
Type |
Mag. |
Const. |
@@ -146,7 +147,7 @@
- {{ item.names }} |
+ {{ item.name.replaceAll('|', ' · ') }} |
{{ item.type | enum }} |
{{ item.magnitude < 99 ? item.magnitude.toFixed(1) : '-' }} |
{{ item.constellation }} |
@@ -226,7 +227,7 @@
{{ name }}
-
+
@@ -318,14 +319,15 @@
-
+ [allowEmpty]="false" (ngModelChange)="dateTimeChanged(false)" styleClass="p-inputtext-sm border-0"
+ [style]="{width: '54px'}" />
@@ -361,7 +363,8 @@