Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
cc17c1a
convert to WebExtension format and make some tests
quoid Jun 23, 2021
f9ec7bc
remove jsdoc, csp
quoid Jun 23, 2021
bcc348a
some package stuff
quoid Jun 24, 2021
f4f54d6
update build process
quoid Jun 24, 2021
33cb08f
webextension port with working popup
quoid Jul 8, 2021
6dcf260
changes popup width
quoid Jul 8, 2021
b809827
dev updates
quoid Jul 8, 2021
afb5775
display matched files in alphabetical order
quoid Jul 8, 2021
977a94b
enable popup badge #145
quoid Jul 9, 2021
2074ded
close popup when opening save location #145
quoid Jul 9, 2021
df9728d
style updates
quoid Jul 10, 2021
1c0796d
fomatting
quoid Jul 11, 2021
9214456
support `run-at context-menu` #148
quoid Jul 18, 2021
1222365
deal with safari pathname bug #148
quoid Jul 18, 2021
0aef71a
send context menu message on window load, might need more improvements
quoid Jul 18, 2021
093a677
update comment
quoid Jul 19, 2021
c972b89
attempt to update badge on back/forward
quoid Jul 19, 2021
ede4173
try to improve context menu injection in SPAs - #148
quoid Jul 19, 2021
f5ab562
some cleanup
quoid Jul 20, 2021
d07cc63
more context-menu work #148
quoid Jul 24, 2021
796ca04
set up multi src dev #145
quoid Jul 25, 2021
cd2e402
set up editor page #145
quoid Jul 25, 2021
1bb71ec
add url to error
quoid Jul 25, 2021
fffcc82
typo fixes
quoid Jul 25, 2021
a6d855e
ensure default directories exist before certain functions
quoid Jul 25, 2021
eef3aa8
major work on page editor port #145
quoid Aug 2, 2021
8973e55
when opening page, navigate to already open page if open
quoid Aug 2, 2021
546e1d3
when going to extension page, make window focused and close popup
quoid Aug 2, 2021
1fd0996
dev updates
quoid Aug 3, 2021
5d3ee32
only return matches and badge counts for urls that starts with http/s
quoid Aug 3, 2021
55183c7
page rebuild
quoid Aug 3, 2021
51cd21c
fix contect injection for urls with ports, refactor context menu crea…
quoid Aug 4, 2021
104c240
add else omission #148
quoid Aug 4, 2021
bc3f226
apply context menu items to all contexts #148
quoid Aug 4, 2021
f036625
rename func
quoid Aug 4, 2021
c64cb81
use name prop #145
quoid Aug 4, 2021
8401018
inactivate popup on extension page #145
quoid Aug 4, 2021
d69f507
formatting
quoid Aug 5, 2021
78175c8
improved error handling
quoid Aug 5, 2021
ff9d105
update response for newRemote func
quoid Aug 5, 2021
90d8b38
add comment
quoid Aug 5, 2021
501349c
remove todo
quoid Aug 5, 2021
5c52639
temp items fixed to top of list, until save
quoid Aug 5, 2021
b08a328
remove comment
quoid Aug 5, 2021
6b8862d
revert sticky temp item change
quoid Aug 6, 2021
90e77c5
remove console logs
quoid Aug 6, 2021
4d918b3
add log message
quoid Aug 6, 2021
b1019af
rebuild page
quoid Aug 6, 2021
42afd63
update logging
quoid Aug 6, 2021
910a8f9
update name and description
quoid Aug 15, 2021
0858b70
update versions and remove stale outlets
quoid Aug 15, 2021
3cc8211
update single items from popup, re-check for updates from popup #145
quoid Aug 16, 2021
1348c4a
add bg color prop to loader
quoid Aug 16, 2021
96e5340
update versions
quoid Aug 16, 2021
f937b67
remove logo from popup
quoid Aug 19, 2021
4e96eae
add app name to settings modal
quoid Aug 19, 2021
32ef962
set min width on save location button
quoid Aug 21, 2021
ba08a13
update version
quoid Aug 21, 2021
69ec989
prefix with teamID
quoid Sep 4, 2021
e7f4636
fix enabled dot #155
quoid Sep 4, 2021
650034e
updat extension name
quoid Sep 4, 2021
f463124
update version
quoid Sep 4, 2021
2dc6169
update icons
quoid Sep 4, 2021
b09863c
update version
quoid Sep 4, 2021
97f46e0
custom api for openInTab and closeTab, #113 #134
quoid Sep 6, 2021
f6ae3b5
rename openInTab method to openTab
quoid Sep 6, 2021
40950b2
add comment
quoid Sep 26, 2021
0c78ec5
update versions
quoid Sep 26, 2021
0c52b74
disable page button and style updates got iOS
quoid Sep 26, 2021
0ac4d37
make bg page non-persistent
quoid Sep 26, 2021
e5ddc4b
only hover on hover capable devices
quoid Oct 3, 2021
23bc694
add refresh button to popup header
quoid Oct 3, 2021
7b70618
rebuild popup
quoid Oct 3, 2021
d144fb5
reduce the number of fle reads
quoid Oct 3, 2021
35ca6c2
remove platform request from popup matches call
quoid Oct 3, 2021
c597222
remove unused page
quoid Oct 3, 2021
9cf5f1d
remove unused page
quoid Oct 3, 2021
c1479c5
add platform message and response
quoid Oct 3, 2021
b6fa577
request platform on popup mount
quoid Oct 3, 2021
68d186a
rebuild
quoid Oct 3, 2021
8e3ecd5
change header text
quoid Oct 3, 2021
e8a4c73
stable ios version upload
quoid Nov 13, 2021
d06cbf4
update ios build number
quoid Nov 13, 2021
a173c79
include ios app webview source files
quoid Nov 13, 2021
26be189
open ios webview links in safari #163
quoid Nov 14, 2021
a87fc7a
update launch screen
quoid Nov 14, 2021
cbf93ee
update mac and ios deployment targets
quoid Nov 14, 2021
7c1ef08
readme updates
quoid Nov 14, 2021
3649216
macos bump build numbers
quoid Nov 15, 2021
a4ce866
only perform context menu injection for macos
quoid Nov 15, 2021
425225a
package lock update
quoid Nov 15, 2021
9eb1205
update urlscheme #165
quoid Nov 15, 2021
5f56bae
add dev response to page updates
quoid Nov 17, 2021
fb6dbe0
fix namespacing on globalized style
quoid Nov 17, 2021
059e60f
fix cropped icons #150
quoid Nov 17, 2021
48b59d3
rebuilds for icon button fix #150
quoid Nov 17, 2021
40601ab
use default cursor for lint markers
quoid Nov 18, 2021
f86b0af
update styleint to 14
quoid Nov 21, 2021
6197e7a
add storage permissions
quoid Nov 22, 2021
5f1b57a
pass `@grant` to content script #167
quoid Nov 22, 2021
550fb34
#167 - add GM_setValue, GM_getValue, GM_deleteValue, GM_listValues ap…
quoid Nov 22, 2021
1cd26c5
update iOS build number
quoid Nov 22, 2021
e4e47f3
Keep `@require` resources in order #166
quoid Nov 23, 2021
00e69b8
remove extraneous content in response
quoid Nov 23, 2021
cec1db1
update api method names #167
quoid Nov 23, 2021
a5d1b0e
update build numbers
quoid Nov 23, 2021
f3bed3c
update build
quoid Nov 27, 2021
8cc2a8b
update dev settings
quoid Nov 27, 2021
7d98795
update build numbers
quoid Nov 28, 2021
90bfe15
formatting
quoid Nov 28, 2021
65585f6
add title attr and formatting
quoid Nov 28, 2021
7e331aa
remove platform from init response
quoid Nov 28, 2021
7352296
show message when injection off #170, use toggle for on/off, update r…
quoid Nov 28, 2021
c87e89f
rebuilds
quoid Nov 28, 2021
8f9d548
bring back hide toolbar icon option #173
quoid Dec 2, 2021
61f878a
properly filter out `@noframes` scripts for badge count #175
quoid Dec 2, 2021
1fa59ed
remove empty line
quoid Dec 4, 2021
ada3489
update style lint
quoid Dec 5, 2021
86e0670
enabling saving from popup #176
quoid Dec 5, 2021
d1e7ec5
style and markup updates #176
quoid Dec 5, 2021
af683d3
update width on ios #177
quoid Dec 5, 2021
cb0d0d5
create GM_addStyle and GM.addStyle api methods
quoid Dec 5, 2021
4447cae
enable all userscripts view in iOS #171
quoid Dec 5, 2021
e5fbe1b
update build numbers
quoid Dec 5, 2021
853fb63
change install usercript directive depending on device
quoid Dec 5, 2021
3f88eeb
implement GM_xmlhttpRequest GM.xmlHttpRequest #134
quoid Dec 12, 2021
c9484a3
fix `@require` loading for resources not ending in .js #179
quoid Dec 12, 2021
41a3a8c
prompt users to install when .js file has frag or query param #179
quoid Dec 12, 2021
3810154
update eslint rules
quoid Dec 12, 2021
a6be558
code cleanup
quoid Dec 13, 2021
dea124d
code cleanup
quoid Dec 13, 2021
a9f5628
list includes in install view
quoid Dec 13, 2021
556953e
add build number to app view
quoid Dec 13, 2021
e8ee0b8
fix api conflict #182
quoid Dec 16, 2021
4d3e72c
update build numbers
quoid Dec 16, 2021
a4a2407
return when no tabs present
quoid Dec 18, 2021
54b8d62
use OSLog for logging
quoid Dec 19, 2021
bc8580c
build number update
quoid Dec 19, 2021
8f783f2
prevent scroll to top on allItems toggle #185
quoid Dec 19, 2021
828f487
improve version checking #187
quoid Dec 19, 2021
cdb04db
update popup scrolling on iOS
quoid Dec 19, 2021
ea1b1cd
update popup styles for iPad split views #186
quoid Dec 19, 2021
29f2570
update build numbers
quoid Dec 20, 2021
1dff90d
ipad popup styling #186
quoid Dec 21, 2021
552318f
update iOS build number
quoid Dec 21, 2021
4f0375b
more ipad popup styling #186
quoid Dec 21, 2021
8b693c6
ios build bump
quoid Dec 21, 2021
f1c7f95
update GM.addStyle and GM_addStyle api methods
quoid Dec 28, 2021
bb4f851
update closeTab api method
quoid Dec 28, 2021
fa4c9a0
documentation updates #172
quoid Dec 29, 2021
a73a6c5
eslint update
quoid Dec 29, 2021
c840999
readme update #172
quoid Dec 29, 2021
ebcb4b1
readme update #172
quoid Dec 29, 2021
4a95ffa
update readme #172
quoid Dec 29, 2021
2915f84
automatically convert http require urls to https #190
quoid Dec 31, 2021
734a464
update build numbers
quoid Dec 31, 2021
1bd8f27
remove console.log
quoid Dec 31, 2021
6b11d0b
update test script count
quoid Dec 31, 2021
c022ee3
#172 documentation updates
quoid Dec 31, 2021
7441894
readme update
quoid Dec 31, 2021
1e12eb5
readme updates
quoid Jan 1, 2022
b6d7602
readme updates
quoid Jan 1, 2022
95d7d06
screenshots
quoid Jan 1, 2022
0863905
readme updates
quoid Jan 1, 2022
f7b2678
readme updates
quoid Jan 4, 2022
eb9dadd
update eslint
quoid Jan 6, 2022
94a8f1e
update assets
quoid Jan 6, 2022
7c365fb
versions update
quoid Jan 6, 2022
f6ef422
Merge branch 'master' into v4.0.0
quoid Jan 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules/
/public/build/
codemirror/
25 changes: 20 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
}
],
"globals": {
"safari": "writable",
"_safari": "readonly"
"_browser": "writable",
"browser": "readonly"
},
"rules": {
"array-bracket-spacing": [
Expand All @@ -39,6 +39,7 @@
}
],
"dot-notation": "error",
"eqeqeq": ["error", "smart"],
"indent": [
"error",
4,
Expand All @@ -57,12 +58,23 @@
"before": true
}
],
"no-bitwise": "error",
"no-mixed-operators": "error",
"no-unused-vars": [
"error",
{
"args": "none"
}
],
"no-use-before-define": [
"error",
{
"classes": true,
"functions": false,
"variables": true
}
],
"no-var": "error",
"object-curly-spacing": [
"error",
"never"
Expand All @@ -75,6 +87,7 @@
"error",
"before"
],
"prefer-const": "error",
"quotes": [
"error",
"double"
Expand All @@ -86,13 +99,15 @@
"omitLastInOneLineBlock": true
}
],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "never"
}],
"space-in-parens": [
"error",
"never"
],
"require-jsdoc": [
"off"
],
"jsx-a11y/a11y-missing-attribute": "off"
}
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ehthumbs.db
Thumbs.db

/node_modules/
/public/build/
/public/*/build/
/temp/

# xcode
Expand Down
7 changes: 6 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "stylelint-config-standard",
"extends": [
"stylelint-config-standard",
"stylelint-config-html/svelte"
],
"rules": {
"comment-empty-line-before": [
"always",
Expand All @@ -8,6 +11,8 @@
}
],
"indentation": 4,
"no-descending-specificity": null,
"selector-class-pattern": null,
"selector-pseudo-class-no-unknown": [
true,
{
Expand Down
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
"eslint.validate": [
"svelte"
],
"stylelint.validate": [
"css",
"postcss",
"svelte"
],
"svelte.plugin.svelte.compilerWarnings": {
"a11y-missing-attribute": "error"
},
Expand Down
160 changes: 135 additions & 25 deletions README.md

Large diffs are not rendered by default.

61 changes: 61 additions & 0 deletions etc/app_ios/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next
30 changes: 30 additions & 0 deletions etc/app_ios/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# static-website-builder

### Requirements:
- [node](https://nodejs.org/en/)
- [gulp](https://gulpjs.com)

### Installation:
1. Have the requirements installed on your local machine
1. Clone this repository locally
1. Navigate to where you cloned this repository
1. Run `npm install`

### Usage:
- `npm run server` starts the dev server
- **Only edit files with the `src` folder**
- Navigate to `http://localhost:8888` to view output
- LiveReload *is* enabled
- `npm run build` builds the website to the `output` folder
- **Do *not* rely on the server command to build the website**
- `npm run clean` cleans the output folder
- **The clean task is built into *both* the server and build commands**, you won't need to often run this command

### Features
- autoprefixing for css
- @import enabled for css
- minifying of css content
- inlining and compression of all files (css, js, svgs, etc...)
- easy deployment to Netlify
- build command = `npm run build`
- publish directory = `output/`
125 changes: 125 additions & 0 deletions etc/app_ios/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
const { dest, parallel, series, src, watch } = require("gulp");
var assets = require("postcss-assets");
const atImport = require("postcss-import");
const autoprefixer = require("autoprefixer");
const connect = require("gulp-connect");
const del = require("del");
const htmlmin = require("gulp-htmlmin");
const inline = require("gulp-inline-source");
const nano = require("cssnano");
const nunjucksRender = require("gulp-nunjucks-render");
const postcss = require("gulp-postcss");
const sourcemaps = require("gulp-sourcemaps");

const sourcePath = "./src";
const outputPath = "./output";

function clean() {
// delete all files at the output path, except .gitignore
const paths = [
`${outputPath}/**/*`
];
return del(paths);
}

function css() {
// NODE_ENV production is set when using the "npm run build" command
// if NODE_ENV === production, no sourcemaps and minify the css
if (process.env.NODE_ENV != "production") {
return src(`${sourcePath}/css/_main.css`)
.pipe(sourcemaps.init())
.pipe(postcss([
atImport(),
assets(),
autoprefixer({overrideBrowserslist: ["defaults"]})
]))
.pipe(sourcemaps.write())
.pipe(dest(outputPath));
} else {
return src(`${sourcePath}/css/_main.css`)
.pipe(postcss([
atImport(),
assets(),
autoprefixer({overrideBrowserslist: ["defaults"]}),
nano()
]))
.pipe(dest(outputPath));
}
}

function js() {
// copy over the javascript files, as is
return src(`${sourcePath}/js/**/*.js`)
.pipe(dest(`${outputPath}/js/`));
}

function html() {
// set a var for whether or not we are in dev mode
// development var will be false when running the npm run build command
// during development we will NOT inline css or js files
// that way we can properly debug
// on builds everything will inlined to a single html file
var development = true;
var ignore = ["css", "js"];
if (process.env.NODE_ENV === "production") {
development = false;
ignore = [];
}
return src(`${sourcePath}/index.html`)
.pipe(nunjucksRender({
// pass custom data to nunjucks for use throughout template(s)
// can use custom data from package.json (ex. title)
data: {
development: development,
title: process.env.npm_package_websiteTitle
},
path: `${sourcePath}/html`
}))
.pipe(inline({
compress: true,
ignore: ignore
}))
.pipe(htmlmin({
collapseWhitespace: true,
minifyJS: false,
removeComments: true
}))
.pipe(dest(outputPath))
.pipe(connect.reload());
}

function complete() {
// delete all the files at the output path except the index.html file
// this is a separate function than the clean function above because
// on the intial clean we want to remove EVERYTHING
// on the build complete, we want to leave the index.html
const paths = [
`${outputPath}/**/*`,
`!${outputPath}/index.html`
];
return del(paths);
}

function server(cb) {
connect.server({
root: outputPath,
livereload: true,
port: 8888
});
cb();
}

function watcher(cb) {
const paths = [
`${sourcePath}/**/*.html`,
`${sourcePath}/**/*.css`,
`${sourcePath}/**/*.js`,
`${sourcePath}/**/*.svg`
];
watch(paths, series(css, js, html));
cb();
}

exports.build = series(clean, css, js, html, complete);
exports.clean = clean;
exports.server = series(clean, css, js, html, parallel(server, watcher));
4 changes: 4 additions & 0 deletions etc/app_ios/output/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
Loading