Browse Source

fix: finish removing arweave

Follow up to a6e0b0a092e08904de5e43af3958b89727c10924
Gabriel Horner 1 year ago
parent
commit
48df03a1fa

+ 0 - 4
deps/common/resources/templates/config.edn

@@ -105,10 +105,6 @@
  ;; Example usage:
  ;; :custom-js-url "https://cdn.logseq.com/custom.js"
 
- ;; Set a custom Arweave gateway
- ;; Default gateway: https://arweave.net
- ;; :arweave/gateway "https://arweave.net"
-
  ;; Set bullet indentation when exporting
  ;; Available options:
  ;;  - `:eight-spaces` as eight spaces

+ 0 - 4
deps/graph-parser/test/resources/exporter-test-graph/logseq/config.edn

@@ -98,10 +98,6 @@
  ;; Example usage:
  ;; :custom-js-url "https://cdn.logseq.com/custom.js"
 
- ;; Set a custom Arweave gateway
- ;; Default gateway: https://arweave.net
- ;; :arweave/gateway "https://arweave.net"
-
  ;; Set bullet indentation when exporting
  ;; Available options:
  ;;  - `:eight-spaces` as eight spaces

+ 3 - 1
src/main/frontend/handler/common/config_edn.cljs

@@ -120,7 +120,9 @@ nested keys or positional errors e.g. tuples"
                (catch :default _ ::failed-to-detect))
         warnings (cond->
                   {:editor/command-trigger
-                   "is no longer supported. Please use '/' and report bugs on it."}
+                   "is no longer supported. Please use '/' and report bugs on it."
+                   :arweave/gateway
+                   "is no longer supported."}
                    db-graph?
                    (merge
                     file-only-config))]

+ 0 - 1
src/main/frontend/schema/handler/common_config.cljc

@@ -24,7 +24,6 @@
     [:start-of-week [:enum 0 1 2 3 4 5 6]]
     [:custom-css-url :string]
     [:custom-js-url :string]
-    [:arweave/gateway :string]
     [:export/bullet-indentation
      [:enum :eight-spaces :four-spaces :two-spaces :tab]]
     [:publishing/all-pages-public? :boolean]

+ 0 - 5
src/main/frontend/state.cljs

@@ -352,7 +352,6 @@
 (def common-default-config
   "Common default config for a user's repo config"
   {:feature/enable-search-remove-accents? true
-   :default-arweave-gateway "https://arweave.net"
    :ui/auto-expand-block-refs? true
 
    ;; For flushing the settings of old versions. Don't bump this value.
@@ -476,10 +475,6 @@ should be done through this fn in order to get global config and config defaults
   []
   (or (not @publishing?) (:publishing/enable-editing? (get-config))))
 
-(defn get-arweave-gateway
-  []
-  (:arweave/gateway (get-config)))
-
 (defonce built-in-macros
          {"img" "[:img.$4 {:src \"$1\" :style {:width $2 :height $3}}]"})