Skip to content

Commit

Permalink
0.0.2 beat
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxxbxxxxx committed Jan 4, 2020
1 parent 6cca121 commit 09207c9
Show file tree
Hide file tree
Showing 48 changed files with 20,116 additions and 6,126 deletions.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["es2015"],
"plugins": ["transform-decorators-legacy"]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
dist/
build/

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
Expand Down
359 changes: 336 additions & 23 deletions .idea/workspace.xml

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ The Fofa Pro View plugin for Chrome automatically checks whether Fofa Pro has an

## 更新日志

2019-01-04

- 优化:面板上面文字无法直接复制(如ip地址),建议让文字可选取,增加使用便利性

- 优化:刷新确认按钮第一次打开有半截藏在屏幕里点不到

- 新增:表格Host字段

2019-12-31

- Chrome、Firefox可在商城直接搜索安装
Expand Down
2 changes: 1 addition & 1 deletion build/chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "FOFA Pro View",
"version": "0.0.1",
"version": "0.0.2",
"manifest_version": 2,
"description": "FOFA Pro view ",
"icons": {
Expand Down
13 changes: 8 additions & 5 deletions build/chrome/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
<html>
<head>
<meta charset="utf-8">
<script src="jquery/jquery-3.4.1.js"></script>
<script src="layer/layer.js"></script>
<link rel="stylesheet" type="text/css" href="styles/layui.css" />
<link href="styles/popup.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" />

<style>
p{
font-size: 0.8em;
Expand All @@ -28,15 +29,17 @@ <h1 class="app-name" id="ip"></h1>
<table id="tableData" class="layui-table" lay-skin="nob" lay-size="sm" lay-even>
<colgroup>
<col width="260">
<col width="100">
<col width="100">
<col width="100">
<col width="50">
<col width="50">
<col width="200">
<col width="50">
</colgroup>
<thead>
<tr>
<td>标题</td>
<td>协议</td>
<td>端口</td>
<td>HOST</td>
<td>查看</td>
</tr>
<tbody id="tbody">
Expand Down
38 changes: 18 additions & 20 deletions build/chrome/scripts/popup.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions build/chrome/styles/options.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ html {
}

* {
user-select: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
-webkit-tap-highlight-color: transparent;
box-sizing: inherit;
Expand Down Expand Up @@ -76,7 +75,7 @@ img {
display: block;
}

/*Removes the default focusring that Mozilla places on select items. From: http://stackoverflow.com/a/18853002/1147859
/*Removes the default focusring that Mozilla places on select items. From: http://stackoverflow.com/a/18853002/1147859
Ensure you set `#000` to the colour you want your text to appear */
select:-moz-focusring {
color: transparent;
Expand Down
3 changes: 1 addition & 2 deletions build/chrome/styles/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ html {
}

* {
user-select: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
-webkit-tap-highlight-color: transparent;
box-sizing: inherit;
Expand Down Expand Up @@ -76,7 +75,7 @@ img {
display: block;
}

/*Removes the default focusring that Mozilla places on select items. From: http://stackoverflow.com/a/18853002/1147859
/*Removes the default focusring that Mozilla places on select items. From: http://stackoverflow.com/a/18853002/1147859
Ensure you set `#000` to the colour you want your text to appear */
select:-moz-focusring {
color: transparent;
Expand Down
4 changes: 2 additions & 2 deletions build/firefox/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "FOFA Pro View",
"version": "0.0.1",
"version": "0.0.2",
"manifest_version": 2,
"description": "FOFA Pro view ",
"icons": {
Expand Down Expand Up @@ -42,7 +42,7 @@
},
"applications": {
"gecko": {
"id": "my-app-id@mozilla.org"
"id": "woo0nise@gmail.com"
}
}
}
13 changes: 8 additions & 5 deletions build/firefox/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
<html>
<head>
<meta charset="utf-8">
<script src="jquery/jquery-3.4.1.js"></script>
<script src="layer/layer.js"></script>
<link rel="stylesheet" type="text/css" href="styles/layui.css" />
<link href="styles/popup.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" />

<style>
p{
font-size: 0.8em;
Expand All @@ -28,15 +29,17 @@ <h1 class="app-name" id="ip"></h1>
<table id="tableData" class="layui-table" lay-skin="nob" lay-size="sm" lay-even>
<colgroup>
<col width="260">
<col width="100">
<col width="100">
<col width="100">
<col width="50">
<col width="50">
<col width="200">
<col width="50">
</colgroup>
<thead>
<tr>
<td>标题</td>
<td>协议</td>
<td>端口</td>
<td>HOST</td>
<td>查看</td>
</tr>
<tbody id="tbody">
Expand Down
38 changes: 18 additions & 20 deletions build/firefox/scripts/popup.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions build/firefox/styles/options.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ html {
}

* {
user-select: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
-webkit-tap-highlight-color: transparent;
box-sizing: inherit;
Expand Down Expand Up @@ -76,7 +75,7 @@ img {
display: block;
}

/*Removes the default focusring that Mozilla places on select items. From: http://stackoverflow.com/a/18853002/1147859
/*Removes the default focusring that Mozilla places on select items. From: http://stackoverflow.com/a/18853002/1147859
Ensure you set `#000` to the colour you want your text to appear */
select:-moz-focusring {
color: transparent;
Expand Down
3 changes: 1 addition & 2 deletions build/firefox/styles/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ html {
}

* {
user-select: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
-webkit-tap-highlight-color: transparent;
box-sizing: inherit;
Expand Down Expand Up @@ -76,7 +75,7 @@ img {
display: block;
}

/*Removes the default focusring that Mozilla places on select items. From: http://stackoverflow.com/a/18853002/1147859
/*Removes the default focusring that Mozilla places on select items. From: http://stackoverflow.com/a/18853002/1147859
Ensure you set `#000` to the colour you want your text to appear */
select:-moz-focusring {
color: transparent;
Expand Down
2 changes: 1 addition & 1 deletion build/opera/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "FOFA Pro View",
"version": "0.0.1",
"version": "0.0.2",
"manifest_version": 2,
"description": "FOFA Pro view ",
"icons": {
Expand Down
13 changes: 8 additions & 5 deletions build/opera/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
<html>
<head>
<meta charset="utf-8">
<script src="jquery/jquery-3.4.1.js"></script>
<script src="layer/layer.js"></script>
<link rel="stylesheet" type="text/css" href="styles/layui.css" />
<link href="styles/popup.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" />

<style>
p{
font-size: 0.8em;
Expand All @@ -28,15 +29,17 @@ <h1 class="app-name" id="ip"></h1>
<table id="tableData" class="layui-table" lay-skin="nob" lay-size="sm" lay-even>
<colgroup>
<col width="260">
<col width="100">
<col width="100">
<col width="100">
<col width="50">
<col width="50">
<col width="200">
<col width="50">
</colgroup>
<thead>
<tr>
<td>标题</td>
<td>协议</td>
<td>端口</td>
<td>HOST</td>
<td>查看</td>
</tr>
<tbody id="tbody">
Expand Down
38 changes: 18 additions & 20 deletions build/opera/scripts/popup.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions build/opera/styles/options.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ html {
}

* {
user-select: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
-webkit-tap-highlight-color: transparent;
box-sizing: inherit;
Expand Down Expand Up @@ -76,7 +75,7 @@ img {
display: block;
}

/*Removes the default focusring that Mozilla places on select items. From: http://stackoverflow.com/a/18853002/1147859
/*Removes the default focusring that Mozilla places on select items. From: http://stackoverflow.com/a/18853002/1147859
Ensure you set `#000` to the colour you want your text to appear */
select:-moz-focusring {
color: transparent;
Expand Down
3 changes: 1 addition & 2 deletions build/opera/styles/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ html {
}

* {
user-select: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
-webkit-tap-highlight-color: transparent;
box-sizing: inherit;
Expand Down Expand Up @@ -76,7 +75,7 @@ img {
display: block;
}

/*Removes the default focusring that Mozilla places on select items. From: http://stackoverflow.com/a/18853002/1147859
/*Removes the default focusring that Mozilla places on select items. From: http://stackoverflow.com/a/18853002/1147859
Ensure you set `#000` to the colour you want your text to appear */
select:-moz-focusring {
color: transparent;
Expand Down
34 changes: 24 additions & 10 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*
import fs from "fs";
import gulp from 'gulp';
import {merge} from 'event-stream'
Expand All @@ -6,6 +7,17 @@ import source from 'vinyl-source-stream';
import buffer from 'vinyl-buffer';
import preprocessify from 'preprocessify';
import gulpif from "gulp-if";
*/

var gulp =require('gulp');
//var merge = require('event-stream');
const {merge} = require('event-stream');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var preprocessify = require('preprocessify');
var gulpif = require("gulp-if");
var fs = require('fs');

const $ = require('gulp-load-plugins')();

Expand All @@ -30,16 +42,16 @@ var manifest = {
firefox: {
"applications": {
"gecko": {
"id": "my-app-id@mozilla.org"
"id": "woo0nise@gmail.com"
}
}
}
}
};

// Tasks
gulp.task('clean', () => {
return pipe(`./build/${target}`, $.clean())
})
});

gulp.task('build', (cb) => {
$.runSequence('clean', 'styles', 'ext', cb)
Expand All @@ -65,7 +77,7 @@ gulp.task('ext', ['manifest', 'js'], () => {
// -----------------
gulp.task('js', () => {
return buildJS(target)
})
});

gulp.task('styles', () => {
return gulp.src('src/styles/**/*.scss')
Expand Down Expand Up @@ -104,7 +116,7 @@ gulp.task('dist', (cb) => {

gulp.task('zip', () => {
return pipe(`./build/${target}/**/*`, $.zip(`${target}.zip`), './dist')
})
});


// Helpers
Expand All @@ -118,6 +130,9 @@ function pipe(src, ...transforms) {
function mergeAll(dest) {
return merge(
pipe('./src/icons/**/*', `./build/${dest}/icons`),
pipe('./src/font/**/*', `./build/${dest}/font`),
pipe('./src/layer/**/*', `./build/${dest}/layer`),
pipe('./src/jquery/**/*', `./build/${dest}/jquery`),
pipe(['./src/_locales/**/*'], `./build/${dest}/_locales`),
pipe([`./src/images/${target}/**/*`], `./build/${dest}/images`),
pipe(['./src/images/shared/**/*'], `./build/${dest}/images`),
Expand All @@ -132,7 +147,7 @@ function buildJS(target) {
'options.js',
'popup.js',
'livereload.js'
]
];

let tasks = files.map( file => {
return browserify({
Expand All @@ -149,14 +164,13 @@ function buildJS(target) {
.pipe(buffer())
.pipe(gulpif(!production, $.sourcemaps.init({ loadMaps: true }) ))
.pipe(gulpif(!production, $.sourcemaps.write('./') ))
.pipe(gulpif(production, $.uglify({
.pipe(gulpif(production, $.uglify({
"mangle": false,
"output": {
"ascii_only": true
}
}
})))
.pipe(gulp.dest(`build/${target}/scripts`));
});

return merge.apply(null, tasks);
}
}
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "FOFA Pro View",
"version": "0.0.1",
"version": "0.0.2",
"manifest_version": 2,
"description": "FOFA Pro view ",
"icons": {
Expand Down
Loading

0 comments on commit 09207c9

Please sign in to comment.