Giter Club home page Giter Club logo

lulumi-browser's People

Contributors

colmugx avatar qazbnm456 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lulumi-browser's Issues

yarn run dev 报错

yarn install --ignore-engines 正常
yarn run build:dll 正常
yarn run dev 报错如下:
`ERROR in src/main/api/lulumi-extension.ts:15:20
TS2306: File 'C:/Users/tt/Desktop/lulumi-browser-master/src/main/constants.ts' is not a module.
13 | import * as mimeTypes from 'mime-types';
14 |

15 | import config from '../constants';
| ^^^^^^^^^^^^^^
16 | import './listeners';
17 |
18 | // ../../shared/store/mainStore.ts

ERROR in src/main/constants.ts
TS1085: Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '0o0'.

ERROR in src/main/index.ts:27:23
TS2306: File 'C:/Users/tt/Desktop/lulumi-browser-master/src/main/constants.ts' is not a module.
25 | import localshortcut from 'electron-localshortcut';
26 | import autoUpdater from './lib/auto-updater';

27 | import constants from './constants';
| ^^^^^^^^^^^^^
28 | import menu from './lib/menu';
29 | import promisify from './lib/promisify';
30 | import fetch from './lib/fetch';

ERROR in src/main/lib/view.ts:8:23
TS2306: File 'C:/Users/tt/Desktop/lulumi-browser-master/src/main/constants.ts' is not a module.
6 | import * as path from 'path';
7 | import urlUtil from '../../renderer/lib/url-util';

8 | import constants from '../constants';
| ^^^^^^^^^^^^^^
9 | import fetch from './fetch';
10 |
11 | const { default: mainStore } = require('../../shared/store/mainStore');

ERROR in src/main/constants.ts:1:1
no-unused-expressions: Expected an assignment or function call and instead saw an expression.

1 | 0000000000000000000000000000000000000000
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ERROR in src/main/constants.ts:1:1
no-octal: Octal literals should not be used.

1 | 0000000000000000000000000000000000000000
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ERROR in src/main/constants.ts:1:41
eol-last: Newline required at end of file but not found.

1 | 0000000000000000000000000000000000000000
| ^

ERROR in src/main/constants.ts:1:41
semi: Missing semicolon.

1 | 0000000000000000000000000000000000000000`

Store browser states

Store browser states for next time browser bootstrapping.

For instance,

  • Tab history
  • Open last open tabs
  • Download history
  • Browsing history

Though everything above got done, there are still some problems need to be solved before we bump Lulumi-browser to 1.2.0.

  • Tab reordering doesn't make changes to the corresponding page object.
  • Should save the state of app periodically.
  • Sometimes, the first restored page would render incorrectly.

PDF Viewer fails with GET parameters in url

Looks like the new electon built in pdf viewer works great but there is a issue with loading pdf's with GET parameters.

Looking at the dev tools I can see the URL of the pdf gets cut off at the first &.

for https://domain.com/printPDF.php?CID=23323&PID=12412

<embed id="plugin" type="application/x-google-chrome-pdf" src="https://domain.com/printPDF.php?CID=23323" stream-url="blob:chrome://pdf-viewer/524829d4-578d-4bcf-866d-fe608bd4fac8" .. snip .. >

window.opener is not fully supported by Electron

Hi, do you have meet this problem?
Just as MarshallOfSound said:

window.opener support doesn't quite work in Electron primarily due to our process model, this may change at some point in the future.

The underlying issue confused me very much :(

获取页面信息

可以获取到页面信息不?计划用这个做网页版微信多开,需要保存聊天记录

Menu items not working.

When you click on one of the menu items, Electron will popup error. For example when I click on Preferences, Electron is throwing me an error.

Screenshot:
screenshot

Change the way injecting content scripts.

Since this commit 5a02bdf, the API will also expose itself to the context and window. I don't think it's safe.

Might change:

// Run the code with lulumi API integrated.
const runContentScript = (extensionId, url, code) => {
  const context = {};
  require('./inject-to').injectTo(extensionId, false, context, LocalStorage);
  global.lulumi = context.lulumi;
  const wrapper = `\n
    var chrome = lulumi;
    ${code}
    \n`;
  runInThisContext(wrapper, {
    filename: url,
    lineOffset: 1,
    displayErrors: true,
  });
  // TODO: `this` show be global.window due to L#67, but it's not. Wired!
  // return compiledWrapper.call(window, context.lulumi);
};

to something like this:

// Run the code with lulumi API integrated.
const runContentScript = (extensionId, url, code) => {
  const context = {
    console,
    require,
  };
  require('./inject-to').injectTo(extensionId, false, context, LocalStorage);
  const wrapper = `\n
    var chrome = lulumi;
    ${code}
    \n`;
  runInNewContext(wrapper, context, {
    filename: url,
    lineOffset: 1,
    displayErrors: true,
  });
  // TODO: `this` show be global.window due to L#67, but it's not. Wired!
  // return compiledWrapper.call(window, context.lulumi);
};

But in the code below, we need to pass window into context as well. However, some internal errors happen when we do so.

SubFrames states will not be stored in History

As titled, the states of sub-frames won't be tracked into History, and the issue was introduced by c6b79ad.

Maybe track the states both in 'did-frame-finish-load' and 'did-stop-loading' events, and use Set structure to store all the states.

yarn run build:win32 报错

yarn 没有问题
yarn run build:dll 没有问题
$ yarn run dev 没有问题
yarn run build:win32 报错
`
ERROR in E:/lulumi/lulumi-browser-master/src/main/api/lulumi-extension.ts
ERROR in E:/lulumi/lulumi-browser-master/src/main/api/lulumi-extension.ts(11,20):
TS2306: File 'E:/lulumi/lulumi-browser-master/src/main/constants.ts' is not a module.

ERROR in E:/lulumi/lulumi-browser-master/src/main/constants.ts
ERROR in E:/lulumi/lulumi-browser-master/src/main/constants.ts(1,1):
TS1085: Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '0o0'.

ERROR in E:/lulumi/lulumi-browser-master/src/main/index.ts
ERROR in E:/lulumi/lulumi-browser-master/src/main/index.ts(23,23):
TS2306: File 'E:/lulumi/lulumi-browser-master/src/main/constants.ts' is not a module.

ERROR in E:/lulumi/lulumi-browser-master/src/main/constants.ts
ERROR in E:/lulumi/lulumi-browser-master/src/main/constants.ts(1,41):
eofline: file should end with a newline

ERROR in E:/lulumi/lulumi-browser-master/src/main/constants.ts
ERROR in E:/lulumi/lulumi-browser-master/src/main/constants.ts(1,41):
semicolon: Missing semicolon

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

E:\lulumi\lulumi-browser-master>`

Cannot build the app correctly.

When I upgraded to npm@5, the node_modules directory will be empty inside the app. That's because npm@5 doesn't install modules correctly for some reason, and it's weird that it seems to affect macOS and OSX only (not sure).

Therefore, downgrade to npm@4 if you are on macOS and OSX.

Ref: electron/packager#664

Complete and Prettify "About Page"

Complete and Prettify "About Page", including:

  • About Page
  • Lulumi Version Page
  • Preferences Page
  • Extension Page
  • Download Page

When all of these get completed, I'll bump lulumi-browser version to 1.1.0. 😄

Building webpack in production mode will accidentally exit without finishing.

let pack = exec('yarn run pack') # yarn run pack:main && yarn run pack:renderer

pack.stdout.on('data', data => console.log(data))
pack.stderr.on('data', data => console.error(data))
pack.on('exit', code => build())

When we hit pack.on('exit', code => build()), webpack should finish yarn run pack:main && yarn run pack:renderer as well, however, process of yarn run pack:renderer seems to be interupted somewhere.

RIght now, the solution to this problem is to run yarn run pack manually before yarn run build.

Can't build on OS X

Building electron app(s)...

Packaging app for platform darwin x64 using electron v1.6.2
Downloading electron-v1.6.2-linux-x64.zip
Downloading electron-v1.6.2-mas-x64.zip
[============================================>] 100.0% of 43.73 MB (1.11 MB/s)
Downloading electron-v1.6.2-win32-x64.zip
[============================================>] 100.0% of 52.33 MB (847.38 kB/s)
Packaging app for platform win32 x64 using electron v1.6.2
Error from electron-packager when building app...
{ Error: Could not find "wine" on your system.

Wine is required to use the app-copyright, app-version, build-version, icon, and
win32metadata parameters for Windows targets.

Make sure that the "wine" executable is in your PATH.

See https://github.com/electron-userland/electron-packager#building-windows-apps-from-non-windows-platforms for details.
at exports._errnoException (util.js:1023:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn wine',
path: 'wine',
spawnargs:
[ '/Users/sergii/code/lulumi-browser/node_modules/rcedit/bin/rcedit.exe',
'/var/folders/5j/wj134sgd7135v9c04_9pthr00000gn/T/electron-packager/win32-x64/lulumi-browser-win32-x64/lulumi-browser.exe',
'--set-file-version',
'1.0.0',
'--set-product-version',
'1.0.0',
'--set-icon',
'/Users/sergii/code/lulumi-browser/app/icons/icon.ico' ] }
✨ Done in 203.98s.

Why does it ask me for wine if I want to build for macOS only? And don't care for other platforms :)

full page screenshot function

Does the lulumi-browser have full page screenshot function?
I want to capture the full page save to image like jpg, how to do in lulumi browser?

a标签链接 点击 无反应

1 a标签链接 点击 无反应;正常应该是弹出一个新tab来浏览新闻,结果 怎么点击都没有反应
2 右下角一直 提示 loading playbooks....
1

Problem for Auto-updater of Lulumi-browser.

Auto-updater for Lulumi-browser has been implemented, but it cannot execute if app doesn't get signed. I manage to defer making it available for now, and may consider deal with it in the future.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.