Skip to content

Commit

Permalink
Merge pull request #7 from Yentis/release/1.1.0
Browse files Browse the repository at this point in the history
Release/1.1.0
  • Loading branch information
Yentis authored Aug 21, 2020
2 parents 191c6f4 + 03ab642 commit 0c44393
Show file tree
Hide file tree
Showing 32 changed files with 1,285 additions and 704 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quasar-manga-reader",
"version": "1.0.1",
"version": "1.1.0",
"description": "Manga reader that scrapes manga sites for updates",
"productName": "Manga Reader",
"author": "Yentis#5218",
Expand All @@ -23,7 +23,7 @@
"core-js": "^3.6.5",
"mocha": "^8.1.1",
"quasar": "^1.0.0",
"vue-lazyload": "^1.3.3"
"relevancy": "^0.2.0"
},
"devDependencies": {
"@quasar/app": "^2.0.0",
Expand Down
12 changes: 5 additions & 7 deletions quasar.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@ module.exports = configure(function (ctx) {
// --> boot files are part of "main.js"
// https://quasar.dev/quasar-cli/boot-files
boot: [
'composition-api',
'lazyload'
'composition-api'
],

// https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
css: [
'app.css',
'bulma.min.css'
],
css: [],

// https://github.com/quasarframework/quasar/tree/dev/extras
extras: [
Expand Down Expand Up @@ -111,7 +107,9 @@ module.exports = configure(function (ctx) {
// Quasar plugins
plugins: [
'LocalStorage',
'Cookies'
'Cookies',
'Notify',
'Loading'
]
},

Expand Down
2 changes: 1 addition & 1 deletion src-cordova/config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="org.cordova.manga.reader" version="1.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="org.cordova.manga.reader" version="1.1.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Manga Reader</name>
<description>Manga reader that scrapes manga sites for updates</description>
<author email="[email protected]" href="http://cordova.io">
Expand Down
6 changes: 6 additions & 0 deletions src-cordova/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions src-cordova/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@
"license": "Apache-2.0",
"devDependencies": {
"cordova-android": "^9.0.0",
"cordova-plugin-cookiemaster": "^1.0.5",
"cordova-plugin-inappbrowser": "^4.0.0",
"cordova-plugin-whitelist": "^1.3.4"
},
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {}
"cordova-plugin-whitelist": {},
"cordova-plugin-inappbrowser": {},
"com.cordova.plugins.cookiemaster": {}
},
"platforms": [
"android"
]
"platforms": []
}
}
}
25 changes: 23 additions & 2 deletions src-electron/main-process/electron-main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { app, BrowserWindow, nativeTheme, session } from 'electron'
import { app, BrowserWindow, nativeTheme, session, Menu } from 'electron'

try {
if (process.platform === 'win32' && nativeTheme.shouldUseDarkColors === true) {
Expand All @@ -17,6 +17,27 @@ if (process.env.PROD) {
let mainWindow

function createWindow () {
const menu = Menu.buildFromTemplate([{
label: '<',
click: (_item, window) => {
window.webContents.goBack()
}
}, {
label: '>',
click: (_item, window) => {
window.webContents.goForward()
}
}, {
label: 'Manga list',
click: (_item, window) => {
window.webContents.goToIndex(0)
}
}, {
label: '',
role: "toggleDevTools",
visible: false
}])

/**
* Initial window options
*/
Expand All @@ -25,7 +46,6 @@ function createWindow () {
height: 800,
minWidth: 900,
title: 'Manga Reader',
autoHideMenuBar: true,
useContentSize: true,
webPreferences: {
// Change from /quasar.conf.js > electron > nodeIntegration;
Expand All @@ -38,6 +58,7 @@ function createWindow () {
}
})

mainWindow.setMenu(menu)
session.defaultSession.cookies.set({
url: 'https://www.webtoons.com/',
name: 'ageGatePass',
Expand Down
191 changes: 0 additions & 191 deletions src/assets/quasar-logo-full.svg

This file was deleted.

6 changes: 0 additions & 6 deletions src/boot/lazyload.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/classes/manga.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SiteType } from './siteType'
import { SiteType } from '../enums/siteEnum'

export class Manga {
url: string;
Expand Down
23 changes: 23 additions & 0 deletions src/classes/notifyOptions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export class NotifyOptions {
message: Error | string
type = 'negative'
timeout: number | undefined = undefined
position: 'bottom' | 'top' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left' | 'right' | 'center' | undefined = undefined
closeBtn: boolean | string = false
actions: Array<{ label: string, handler?: () => void, color?: string }> | undefined

constructor (message: Error | string) {
this.message = message
}

getOptions () {
return {
type: this.type,
message: this.message instanceof Error ? this.message.message : this.message,
timeout: this.timeout,
position: this.position,
closeBtn: this.closeBtn,
actions: this.actions
}
}
}
10 changes: 0 additions & 10 deletions src/classes/siteType.ts

This file was deleted.

Loading

0 comments on commit 0c44393

Please sign in to comment.