diff --git a/index.html b/index.html deleted file mode 100644 index 47b3f7b..0000000 --- a/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - Microsoft Office - Electron - - -
- -

-

This is Microsoft Office - Electron


- No Money Needed. Free of Cost Microsoft Office made with ElectronJS

- If you want to use Dark Mode, Please set the theme to Black in Microsoft Office -


Please wait while the website loads.



- Loading - - -
-
- - diff --git a/main.js b/main.js deleted file mode 100644 index 564d294..0000000 --- a/main.js +++ /dev/null @@ -1,147 +0,0 @@ -const { app, Menu, BrowserWindow } = require('electron') -const openAboutWindow = require('about-window').default; -const join = require('path').join; -const isMac = process.platform === 'darwin' - -const template = [ - // { role: 'appMenu' } - ...(isMac ? [{ - label: app.name, - submenu: [ - { role: 'about' }, - { type: 'separator' }, - { role: 'services' }, - { type: 'separator' }, - { role: 'hide' }, - { role: 'hideothers' }, - { role: 'unhide' }, - { type: 'separator' }, - { role: 'quit' } - ] - }] : []), - // { role: 'fileMenu' } - { - label: 'Microsoft Office - Electron', - submenu: [ - { - label: 'About Microsoft Office - Electron', - click: () => - openAboutWindow({ - icon_path: 'https://github.com/agam778/Microsoft-Office-Electron/blob/main/icon2.png?raw=true', - product_name: 'Microsoft Office - Electron', - copyright: 'Copyright (c) 2021 Agampreet Singh Bajaj', - package_json_dir: __dirname, - bug_report_url: 'https://github.com/agam778/Microsoft-Office-Electron/issues/', - bug_link_text: 'Report an issue', - adjust_window_size: '2', - show_close_button: 'Close', - - }), - }, - { - label: 'Learn More', - click: async () => { - const { shell } = require('electron'); - await shell.openExternal('https://github.com/agam778/Microsoft-Office-Electron'); -} -}, - {type:'separator'}, - { - role: 'quit', - accelerator: process.platform === 'darwin' ? 'Ctrl+Q' : 'Ctrl+Q', - } - - ] - }, - // { role: 'editMenu' } - { - label: 'Edit', - submenu: [ - { role: 'undo' }, - { role: 'redo' }, - { type: 'separator' }, - { role: 'cut' }, - { role: 'copy' }, - { role: 'paste' }, - ...(isMac ? [ - { role: 'pasteAndMatchStyle' }, - { role: 'delete' }, - { role: 'selectAll' }, - { type: 'separator' }, - { - label: 'Speech', - submenu: [ - { role: 'startSpeaking' }, - { role: 'stopSpeaking' } - ] - } - ] : [ - { role: 'delete' }, - { type: 'separator' }, - { role: 'selectAll' } - ]) - ] - }, - // { role: 'viewMenu' } - { - label: 'View', - submenu: [ - { role: 'reload' }, - { role: 'forceReload' }, - { role: 'toggleDevTools' }, - { type: 'separator' }, - { role: 'resetZoom' }, - { role: 'zoomIn' }, - { role: 'zoomOut' }, - { type: 'separator' }, - { role: 'togglefullscreen' } - ] - }, - // { role: 'windowMenu' } - { - label: 'Window', - submenu: [ - { role: 'minimize' }, - { role: 'zoom' }, - ...(isMac ? [ - { type: 'separator' }, - { role: 'front' }, - { type: 'separator' }, - { role: 'window' } - ] : [ - { role: 'close' } - ]) - ] - } -] - -const menu = Menu.buildFromTemplate(template) -Menu.setApplicationMenu(menu) - -function createWindow () { - const win = new BrowserWindow({ - width: 1181, - height: 670, - icon: './icon.ico', - webPreferences: { - nodeIntegration: true - } - }) - - win.loadURL('file:///index.html', -{userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Safari/537.36'}); -} - -app.whenReady().then(createWindow) - -app.on('window-all-closed', () => { - if (process.platform !== 'darwin') { - app.quit() - } -}) - -app.on('activate', () => { - if (BrowserWindow.getAllWindows().length === 0) { - createWindow() - } -}) diff --git a/package.json b/package.json deleted file mode 100644 index da8d86f..0000000 --- a/package.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "name": "microsoft-office-electron", - "version": "0.1.0", - "description": "An Unofficial Microsoft Office Online Desktop Client. Free of Cost.", - "main": "main.js", - "repository": { - "type": "git", - "url": "https://github.com/agam778/Microsoft-Office-Electron.git" - }, - "build": { - "extraFiles": [ - "index.html", - "Intro Image.png", - "Loading.gif", - "icon.png", - "icon.ico", - "license.txt", - "icon2.png" - ], - "appId": "com.agampreet.microsoft-office-electron", - "productName": "Microsoft Office - Electron", - "linux": { - "category": "Utilities", - "desktop": { - "Comment": "An Unofficial Microsoft Office Online Desktop Client. Free of Cost.", - "Name": "Microsoft Office - Electron", - "StartupNotify": "true", - "Terminal": "false", - "Type": "Application", - "Categories": "Utilities;Office;" - }, - "executableName": "microsoft-office-electron", - "maintainer": "Agampreet Singh ", - "target": [ - "AppImage" - ] - }, - "mac": { - "category": "public.app-category.utilities", - "target": [ - "dmg" - ] - }, - "nsis": { - "oneClick": false, - "perMachine": false, - "allowToChangeInstallationDirectory": false, - "license": "license.txt" - }, - "win": { - "target": [ - "nsis" - ] - }, - "directories": { - "output": "release" - } - }, - "scripts": { - "start": "electron .", - "pack": "electron-builder --dir", - "dist": "electron-builder" - }, - "author": { - "author": "Agampreet Singh", - "email": "agampreet628@gmail.com", - "url": "https://agam778.github.io/" - }, - "license": "MIT", - "devDependencies": { - "electron": "^12.0.0", - "electron-builder": "^22.10.5" - }, - "dependencies": { - "about-window": "^1.14.0", - "electron-updater": "^4.3.8" - } -} diff --git a/renderer.js b/renderer.js deleted file mode 100644 index e69de29..0000000