This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jiacai2050
committed
Sep 11, 2020
1 parent
5c5966f
commit 69ef988
Showing
18 changed files
with
140 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,91 +1,101 @@ | ||
(defproject gooreplacer "3.10.0" | ||
:description "Modify, block URLs & Headers" | ||
:url "https://github.com/jiacai2050/gooreplacer" | ||
:license {:name "MIT" | ||
:url "http://liujiacai.net/license/MIT.html?year=2015"} | ||
:dependencies [[org.clojure/clojure "1.10.0"] | ||
[org.clojure/clojurescript "1.10.597"] | ||
[figwheel-sidecar "0.5.14"] | ||
[org.clojure/core.match "0.3.0-alpha5"] | ||
[org.clojure/data.json "0.2.7"] | ||
[alandipert/storage-atom "2.0.1"]] | ||
:plugins [[lein-figwheel "0.5.14"] | ||
[lein-cljsbuild "1.1.7"] | ||
[lein-doo "0.1.8"]] | ||
:profiles { | ||
;; https://docs.cider.mx/cider/0.23/basics/clojurescript.html#_piggieback | ||
;; cider will jack in piggieback automatically | ||
;; :dev {:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}} | ||
:dev {:source-paths ["src/common"]} | ||
:ui-deps {:dependencies [[antizer "0.3.0"] | ||
[cljs-http "0.1.43"] | ||
[org.clojure/core.async "0.3.443"] | ||
[reagent "0.8.1"]]} | ||
:bg-deps {:dependencies []} | ||
:dev-option {:source-paths ["src/option"] | ||
:clean-targets ^{:protect false} [:target-path "resources/dev/option/js"] | ||
:description "Modify, block URLs & Headers" | ||
:url "https://github.com/jiacai2050/gooreplacer" | ||
:license {:name "MIT" | ||
:url "http://liujiacai.net/license/MIT.html?year=2015"} | ||
:dependencies [[org.clojure/clojure "1.10.0"] | ||
[org.clojure/clojurescript "1.10.597"] | ||
[figwheel-sidecar "0.5.14"] | ||
[org.clojure/core.match "0.3.0-alpha5"] | ||
[org.clojure/data.json "0.2.7"] | ||
[alandipert/storage-atom "2.0.1"] | ||
|
||
;; ui | ||
[antizer "0.3.0"] | ||
[cljs-http "0.1.43"] | ||
[org.clojure/core.async "0.3.443"] | ||
[reagent "0.8.1"]] | ||
:plugins [[lein-figwheel "0.5.14"] | ||
[lein-cljsbuild "1.1.7"] | ||
[lein-doo "0.1.8"]] | ||
:profiles { | ||
;; https://docs.cider.mx/cider/0.23/basics/clojurescript.html#_piggieback | ||
;; cider will jack in piggieback automatically | ||
;; :dev {:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}} | ||
:dev-option {:clean-targets ^{:protect false} [:target-path "resources/dev/option/js"] | ||
:cljsbuild {:builds [{:id "dev" | ||
:figwheel true | ||
:source-paths ["src"] | ||
:compiler {:output-to "resources/dev/option/js/main.js" | ||
:source-map true | ||
:asset-path "js" | ||
:output-dir "resources/dev/option/js" | ||
:optimizations :none | ||
:main gooreplacer.option.core | ||
:verbose true}}]} | ||
:figwheel {:server-port 8080 | ||
:http-server-root "dev/option" | ||
:css-dirs ["resources/dev/option/css"] | ||
:server-logfile ".figwheel_option.log" | ||
:repl true}} | ||
:dev-popup {:clean-targets ^{:protect false} [:target-path "resources/dev/popup/js"] | ||
:cljsbuild {:builds [{:id "dev" | ||
:figwheel true | ||
:source-paths ["src/option" "src/common"] | ||
:compiler {:output-to "resources/dev/option/js/main.js" | ||
:compiler {:output-to "resources/dev/popup/js/main.js" | ||
:source-map true | ||
:asset-path "js" | ||
:output-dir "resources/dev/option/js" | ||
:output-dir "resources/dev/popup/js" | ||
:optimizations :none | ||
:main gooreplacer.core | ||
:main gooreplacer.popup.core | ||
:verbose true}}]} | ||
:figwheel {:server-port 8080 | ||
:figwheel {:server-port 8081 | ||
:http-server-root "dev/option" | ||
:css-dirs ["resources/dev/option/css"] | ||
:server-logfile ".figwheel_option.log" | ||
:server-logfile ".figwheel_popup.log" | ||
:repl true}} | ||
:dev-bg {:source-paths ["src/background" "src/common"] | ||
:clean-targets ^{:protect false} [:target-path "resources/dev/background/js"] | ||
:figwheel {:server-port 8089 | ||
:http-server-root "dev/background" | ||
:server-logfile ".figwheel_bg.log" | ||
:repl true} | ||
:cljsbuild {:builds [{:id "dev" | ||
:figwheel true | ||
:source-paths ["src/background" "src/common"] | ||
:compiler {:output-to "resources/dev/background/js/main.js" | ||
:source-map true | ||
:output-dir "resources/dev/background/js" | ||
:asset-path "js" | ||
:main gooreplacer.core | ||
:optimizations :none | ||
:verbose true}}]}} | ||
:release {:clean-targets ^{:protect false} [:target-path | ||
"resources/release/option/js" | ||
"resources/release/background/js"] | ||
:cljsbuild {:builds [{:id "option" | ||
:source-paths ["src/option" "src/common"] | ||
:compiler {:output-to "resources/release/option/main.js" | ||
:output-dir "resources/release/option/js" | ||
:externs ["externs/chrome_extensions.js" "externs/chrome.js"] | ||
:optimizations :advanced | ||
:main gooreplacer.core}} | ||
{:id "background" | ||
:source-paths ["src/background" "src/common"] | ||
:compiler {:output-to "resources/release/background/main.js" | ||
:output-dir "resources/release/background/js" | ||
:externs ["externs/chrome_extensions.js" "externs/chrome.js"] | ||
:optimizations :advanced | ||
:main gooreplacer.core}}]}} | ||
:test {:cljsbuild {:builds [{:id "test" | ||
:source-paths ["test" "src/common"] | ||
:compiler {:output-to "out/main.js" | ||
:main gooreplacer.runner | ||
:optimizations :none}}]} | ||
:doo {:build "test"}}} | ||
:dev-bg {:clean-targets ^{:protect false} [:target-path "resources/dev/background/js"] | ||
:figwheel {:server-port 8089 | ||
:http-server-root "dev/background" | ||
:server-logfile ".figwheel_bg.log" | ||
:repl true} | ||
:cljsbuild {:builds [{:id "dev" | ||
:source-paths ["src"] | ||
:figwheel true | ||
:compiler {:output-to "resources/dev/background/js/main.js" | ||
:source-map true | ||
:output-dir "resources/dev/background/js" | ||
:asset-path "js" | ||
:main gooreplacer.background | ||
:optimizations :none | ||
:verbose true}}]}} | ||
:release {:clean-targets ^{:protect false} [:target-path | ||
"resources/release/option/js" | ||
"resources/release/background/js"] | ||
:cljsbuild {:builds [{:id "option" | ||
:compiler {:output-to "resources/release/option/main.js" | ||
:output-dir "resources/release/option/js" | ||
:externs ["externs/chrome_extensions.js" "externs/chrome.js"] | ||
:optimizations :advanced | ||
:main gooreplacer.option.core}} | ||
{:id "background" | ||
:compiler {:output-to "resources/release/background/main.js" | ||
:output-dir "resources/release/background/js" | ||
:externs ["externs/chrome_extensions.js" "externs/chrome.js"] | ||
:optimizations :advanced | ||
:main gooreplacer.background}}]}} | ||
:test {:cljsbuild {:builds [{:id "test" | ||
:compiler {:output-to "out/main.js" | ||
:main gooreplacer.runner | ||
:optimizations :none}}]} | ||
:doo {:build "test"}}} | ||
|
||
:aliases {"option" ["with-profile" "dev-option,ui-deps" "do" | ||
["clean"] | ||
["figwheel" "dev"]] | ||
"bg" ["with-profile" "dev-bg,bg-deps" "do" | ||
["clean"] | ||
["figwheel" "dev"]] | ||
"test-and-watch" ["with-profile" "test" "do" | ||
["clean"] | ||
;; First install phantom | ||
["doo" "phantom"]]}) | ||
:aliases {"option" ["with-profile" "dev-option" "do" | ||
["clean"] | ||
["figwheel" "dev"]] | ||
"bg" ["with-profile" "dev-bg" "do" | ||
["clean"] | ||
["figwheel" "dev"]] | ||
"test-and-watch" ["with-profile" "test" "do" | ||
["clean"] | ||
;; First install phantom | ||
["doo" "phantom"]]}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
goog.require("figwheel.connect.build_dev"); | ||
goog.require("gooreplacer.core"); | ||
goog.require("gooreplacer.option.core"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<html> | ||
<body> | ||
<h1>Hello Extensions</h1> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(ns gooreplacer.common.dev) | ||
|
||
(enable-console-print!) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
(ns gooreplacer.common.i18n | ||
(:require-macros [gooreplacer.common.macro :refer [init-i18n!]])) | ||
|
||
(init-i18n!) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...src/src/common/gooreplacer/macro_test.clj → ...src/src/gooreplacer/common/macro_test.clj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
cljs-src/src/common/gooreplacer/tool.cljs → cljs-src/src/gooreplacer/common/tool.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
cljs-src/src/option/gooreplacer/core.cljs → cljs-src/src/gooreplacer/option/core.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
cljs-src/src/option/gooreplacer/db.cljs → cljs-src/src/gooreplacer/option/db.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...c/src/option/gooreplacer/local_rules.cljs → ...c/src/gooreplacer/option/local_rules.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
.../src/option/gooreplacer/online_rules.cljs → .../src/gooreplacer/option/online_rules.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
cljs-src/src/option/gooreplacer/table.cljs → cljs-src/src/gooreplacer/option/table.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters