Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/scripts/telegram-notify.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fetch from 'node-fetch'
import fs from 'fs'

const {
Expand All @@ -25,7 +24,7 @@ if (GITHUB_EVENT_PATH && fs.existsSync(GITHUB_EVENT_PATH)) {
const payload = JSON.parse(fs.readFileSync(GITHUB_EVENT_PATH, 'utf8'))

if (GITHUB_EVENT_NAME === 'push') {
message += `\n*Push*\n`
message += `\n*Push*\n\n`
message += `Branch: ${GITHUB_REF?.replace('refs/heads/', '')}\n`

payload.commits?.slice(0, 3).forEach((c, i) => {
Expand All @@ -35,15 +34,15 @@ if (GITHUB_EVENT_PATH && fs.existsSync(GITHUB_EVENT_PATH)) {

if (GITHUB_EVENT_NAME === 'pull_request' || GITHUB_EVENT_NAME === 'pull_request_target') {
const pr = payload.pull_request
message += `\n*Pull Request*\n`
message += `\n*Pull Request*\n\n`
message += `Title: ${pr.title}\n`
message += `Action: ${payload.action}\n`
message += `URL: ${pr.html_url}\n`
}

if (GITHUB_EVENT_NAME === 'issues') {
const issue = payload.issue
message += `\n*Issue*\n`
message += `\n*Issue*\n\n`
message += `Title: ${issue.title}\n`
message += `Action: ${payload.action}\n`
message += `URL: ${issue.html_url}\n`
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/ci.yml

This file was deleted.

5 changes: 1 addition & 4 deletions .github/workflows/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
GITHUB_EVENT_PATH: ${{ github.event_path }}

jobs:
telegram-notify:
telegram:
name: Telegram Notification
runs-on: ubuntu-latest

Expand All @@ -37,8 +37,5 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install dependencies
run: npm install node-fetch

- name: Send Telegram notification
run: node .github/scripts/telegram-notify.js
2 changes: 1 addition & 1 deletion apps/desktop/assets/entitlements.mac.plist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
Expand Down
12 changes: 6 additions & 6 deletions apps/desktop/main/app/window.manager.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { BrowserWindow, ipcMain, Menu } from 'electron'
import path from 'path'

import { DEV_SERVER_URL, isDev } from '../config/env'
import { getPreloadPath, getRendererIndex } from '../config/paths'
Expand All @@ -10,25 +9,26 @@ export function createMainWindow() {
const preloadPath = getPreloadPath(__dirname)

const win = new BrowserWindow({
title: 'Datary',
width: 1200,
height: 800,
show: false,
title: 'Datary',
webPreferences: {
preload: preloadPath,
contextIsolation: true,
nodeIntegration: false,
sandbox: false
sandbox: false,
devTools: isDev,
enableBlinkFeatures: 'LayoutNG',
spellcheck: false,
backgroundThrottling: false
}
})

Menu.setApplicationMenu(null)
mainWindow.set(win)

if (isDev && DEV_SERVER_URL) {
win.webContents.closeDevTools()
win.webContents.setVisualZoomLevelLimits(1, 1)

win.loadURL(DEV_SERVER_URL)
} else {
win.loadFile(getRendererIndex(__dirname))
Expand Down
17 changes: 14 additions & 3 deletions apps/desktop/main/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,20 @@ import { registerAppLifecycle } from './app/app.lifecycle'
import { createMainWindow } from './app/window.manager'
import { registerIpc } from './ipc/register.ipc'

app.whenReady().then(async () => {
await registerIpc()
app.commandLine.appendSwitch('disable-background-timer-throttling')
app.commandLine.appendSwitch('disable-renderer-backgrounding')
app.commandLine.appendSwitch('disable-extensions')
app.commandLine.appendSwitch('disable-breakpad')
app.commandLine.appendSwitch(
'disable-features',
'OutOfBlinkCors,BackForwardCache,TranslateUI,BlinkGenPropertyTrees'
)
app.commandLine.appendSwitch('force-color-profile', 'srgb')

registerAppLifecycle()

app.whenReady().then(async () => {
createMainWindow()
registerAppLifecycle()

await registerIpc()
})
1 change: 0 additions & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export * from './domain/query/query.entity'
export * from './domain/query/query.types'

export * from './application/ports/db.adapter.port'
export * from './application/ports/credential.port'

export * from './application/use-cases/connect-db.usecase'
export * from './application/use-cases/execute-query.usecase'
Expand Down
Loading