mirror of https://github.com/Fabio286/antares.git
Moved to electron 9
This commit is contained in:
parent
587116bd20
commit
d69e411581
|
@ -4,12 +4,14 @@
|
||||||
|
|
||||||
# Antares SQL Client
|
# Antares SQL Client
|
||||||
|
|
||||||
|
![GitHub package.json version](https://img.shields.io/github/package-json/v/estarium/antares) [![Build Status](https://travis-ci.com/EStarium/antares.svg?branch=master)](https://travis-ci.com/EStarium/antares) ![GitHub All Releases](https://img.shields.io/github/downloads/estarium/antares/total) ![GitHub](https://img.shields.io/github/license/estarium/antares)
|
||||||
|
|
||||||
Antares is an SQL client based on Electron.js and Vue.js that aims to become a useful tool, especially for developers.
|
Antares is an SQL client based on Electron.js and Vue.js that aims to become a useful tool, especially for developers.
|
||||||
My target is to support as many databases as possible, and all major operating systems, including the ARM versions.
|
My target is to support as many databases as possible, and all major operating systems, including the ARM versions.
|
||||||
|
|
||||||
At the moment this application is in a development state, it lacks many features, and is'nt ready as a main SQL client. However i'm actively working on it, hoping to provide all essential features as soon as possible.
|
At the moment this application is in a development state, it lacks many features, and is'nt ready as a main SQL client. However i'm actively working on it, hoping to provide all essential features as soon as possible.
|
||||||
|
|
||||||
If you are curious to try this early state of Antares you can download and install the [latest release](https://github.com/EStarium/antares/releases), and stay tuned for updates. At moment is only available for Windows.
|
If you are curious to try this early state of Antares you can download and install the [latest release](https://github.com/EStarium/antares/releases), and stay tuned for updates. At moment i'm testing only on Windows.
|
||||||
|
|
||||||
## Currently supported
|
## Currently supported
|
||||||
|
|
||||||
|
@ -27,3 +29,7 @@ If you are curious to try this early state of Antares you can download and insta
|
||||||
- [x] Windows
|
- [x] Windows
|
||||||
- [ ] Linux
|
- [ ] Linux
|
||||||
- [ ] MacOS
|
- [ ] MacOS
|
||||||
|
|
||||||
|
## Translations
|
||||||
|
|
||||||
|
[Giuseppe Gigliotti](https://github.com/ReverbOD) / [Italian Translation](https://github.com/EStarium/antares/pull/20)
|
||||||
|
|
|
@ -1528,9 +1528,9 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "8.10.61",
|
"version": "8.10.62",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.61.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.62.tgz",
|
||||||
"integrity": "sha512-l+zSbvT8TPRaCxL1l9cwHCb0tSqGAGcjPJFItGGYat5oCTiq1uQQKYg5m7AF1mgnEBzFXGLJ2LRmNjtreRX76Q=="
|
"integrity": "sha512-76fupxOYVxk36kb7O/6KtrAPZ9jnSK3+qisAX4tQMEuGNdlvl7ycwatlHqjoE6jHfVtXFM3pCrCixZOidc5cuw=="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -4083,9 +4083,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"electron": {
|
"electron": {
|
||||||
"version": "8.4.0",
|
"version": "9.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/electron/-/electron-8.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/electron/-/electron-9.1.2.tgz",
|
||||||
"integrity": "sha512-SpgyccM5rjDJSGcpQjiviUBT44fZlSyhcjy8RpKSnAad+co4xY1vYj6T25U1CfSk0PH/dhvcp63P2sdXHCwq/Q==",
|
"integrity": "sha512-xEYadr3XqIqJ4ktBPo0lhzPdovv4jLCpiUUGc2M1frUhFhwqXokwhPaTUcE+zfu5+uf/ONDnQApwjzznBsRrgQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@electron/get": "^1.0.1",
|
"@electron/get": "^1.0.1",
|
||||||
|
@ -7116,9 +7116,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"iconv-lite": {
|
"iconv-lite": {
|
||||||
"version": "0.5.1",
|
"version": "0.5.2",
|
||||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.5.2.tgz",
|
||||||
"integrity": "sha512-ONHr16SQvKZNSqjQT9gy5z24Jw+uqfO02/ngBSBoqChZ+W8qXX7GPRa1RoUnzGADw8K63R1BXUMzarCVQBpY8Q==",
|
"integrity": "sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"safer-buffer": ">= 2.1.2 < 3"
|
"safer-buffer": ">= 2.1.2 < 3"
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
"cross-env": "^7.0.2",
|
"cross-env": "^7.0.2",
|
||||||
"electron": "^8.4.0",
|
"electron": "^9.1.2",
|
||||||
"electron-builder": "^22.8.0",
|
"electron-builder": "^22.8.0",
|
||||||
"electron-devtools-installer": "^3.1.1",
|
"electron-devtools-installer": "^3.1.1",
|
||||||
"electron-webpack": "^2.8.2",
|
"electron-webpack": "^2.8.2",
|
||||||
|
|
|
@ -12,7 +12,7 @@ process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = 'true';
|
||||||
// global reference to mainWindow (necessary to prevent window from being garbage collected)
|
// global reference to mainWindow (necessary to prevent window from being garbage collected)
|
||||||
let mainWindow;
|
let mainWindow;
|
||||||
|
|
||||||
function createMainWindow () {
|
async function createMainWindow () {
|
||||||
const icon = require('../renderer/images/logo-32.png');
|
const icon = require('../renderer/images/logo-32.png');
|
||||||
const window = new BrowserWindow({
|
const window = new BrowserWindow({
|
||||||
width: 1600,
|
width: 1600,
|
||||||
|
@ -24,23 +24,16 @@ function createMainWindow () {
|
||||||
icon: nativeImage.createFromDataURL(icon.default),
|
icon: nativeImage.createFromDataURL(icon.default),
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
'web-security': false
|
'web-security': false,
|
||||||
|
enableRemoteModule: true
|
||||||
},
|
},
|
||||||
frame: false,
|
frame: false,
|
||||||
backgroundColor: '#1d1d1d'
|
backgroundColor: '#1d1d1d'
|
||||||
});
|
});
|
||||||
|
|
||||||
if (isDevelopment)
|
|
||||||
window.loadURL(`http://localhost:${process.env.ELECTRON_WEBPACK_WDS_PORT}`);
|
|
||||||
else {
|
|
||||||
window.loadURL(formatUrl({
|
|
||||||
pathname: path.join(__dirname, 'index.html'),
|
|
||||||
protocol: 'file',
|
|
||||||
slashes: true
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isDevelopment) {
|
if (isDevelopment) {
|
||||||
|
await window.loadURL(`http://localhost:${process.env.ELECTRON_WEBPACK_WDS_PORT}`);
|
||||||
|
|
||||||
const { default: installExtension, VUEJS_DEVTOOLS } = require('electron-devtools-installer');
|
const { default: installExtension, VUEJS_DEVTOOLS } = require('electron-devtools-installer');
|
||||||
window.webContents.openDevTools();
|
window.webContents.openDevTools();
|
||||||
|
|
||||||
|
@ -52,6 +45,13 @@ function createMainWindow () {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
await window.loadURL(formatUrl({
|
||||||
|
pathname: path.join(__dirname, 'index.html'),
|
||||||
|
protocol: 'file',
|
||||||
|
slashes: true
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
window.on('closed', () => {
|
window.on('closed', () => {
|
||||||
mainWindow = null;
|
mainWindow = null;
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
import { app, ipcMain } from 'electron';
|
||||||
|
|
||||||
|
export default () => {
|
||||||
|
ipcMain.on('closeApp', () => {
|
||||||
|
app.exit();
|
||||||
|
});
|
||||||
|
};
|
|
@ -1,6 +1,7 @@
|
||||||
import connection from './connection';
|
import connection from './connection';
|
||||||
import tables from './tables';
|
import tables from './tables';
|
||||||
import updates from './updates';
|
import updates from './updates';
|
||||||
|
import application from './application';
|
||||||
|
|
||||||
const connections = {};
|
const connections = {};
|
||||||
|
|
||||||
|
@ -8,4 +9,5 @@ export default () => {
|
||||||
connection(connections);
|
connection(connections);
|
||||||
tables(connections);
|
tables(connections);
|
||||||
updates();
|
updates();
|
||||||
|
application();
|
||||||
};
|
};
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { remote } from 'electron';
|
import { remote, ipcRenderer } from 'electron';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'TheTitleBar',
|
name: 'TheTitleBar',
|
||||||
|
@ -56,7 +56,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeApp () {
|
closeApp () {
|
||||||
this.w.close();
|
ipcRenderer.send('closeApp');
|
||||||
},
|
},
|
||||||
minimizeApp () {
|
minimizeApp () {
|
||||||
this.w.minimize();
|
this.w.minimize();
|
||||||
|
|
|
@ -44,14 +44,15 @@ module.exports = {
|
||||||
deleteConnectionCorfirm: 'Confermi l\'eliminazione di',
|
deleteConnectionCorfirm: 'Confermi l\'eliminazione di',
|
||||||
connectionSuccessfullyMade: 'Connessione avvenuta con successo!',
|
connectionSuccessfullyMade: 'Connessione avvenuta con successo!',
|
||||||
madeWithJS: 'Fatto con 💛 e JavaScript!',
|
madeWithJS: 'Fatto con 💛 e JavaScript!',
|
||||||
|
checkForUpdates: 'Cerca aggiornamenti',
|
||||||
noUpdatesAvailable: 'Nessun aggiornamento disponibile',
|
noUpdatesAvailable: 'Nessun aggiornamento disponibile',
|
||||||
checkingForUpdate: 'Controllando gli aggiornamenti',
|
checkingForUpdate: 'Controllo aggiornamenti in corso',
|
||||||
checkFailure: 'Controllo fallito, riprova più tardi',
|
checkFailure: 'Controllo fallito, riprova più tardi',
|
||||||
updateAvailable: 'Aggiornamento disponibile',
|
updateAvailable: 'Aggiornamento disponibile',
|
||||||
downloadingUpdate: 'Scaricando l\'aggiornamento',
|
downloadingUpdate: 'Download dell\'aggiornamento',
|
||||||
updateDownloaded: 'Aggiornamento scaricato',
|
updateDownloaded: 'Aggiornamento scaricato',
|
||||||
restartToInstall: 'Riavvia Antares per installare l\'aggiornamento',
|
restartToInstall: 'Riavvia Antares per installare l\'aggiornamento',
|
||||||
unableEditFieldWithoutPrimary: 'Impossibile modificare il campo senza una primary key in resultset',
|
unableEditFieldWithoutPrimary: 'Impossibile modificare il campo senza una primary key nel resultset',
|
||||||
editCell: 'Modifica cella',
|
editCell: 'Modifica cella',
|
||||||
deleteRows: 'Elimina riga | Elimina {count} righe',
|
deleteRows: 'Elimina riga | Elimina {count} righe',
|
||||||
confirmToDeleteRows: 'Confermi di voler cancellare una riga? | Confermi di voler cancellare {count} righe?'
|
confirmToDeleteRows: 'Confermi di voler cancellare una riga? | Confermi di voler cancellare {count} righe?'
|
||||||
|
|
Loading…
Reference in New Issue