0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-03 12:59:12 -05:00

Reorganize resources directory

This commit is contained in:
Andrey Antukh 2022-07-28 11:35:56 +02:00
parent 4266d9be83
commit d30b6ac5b9
31 changed files with 14 additions and 14 deletions

View file

@ -10,10 +10,10 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@200;300;400;500;700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@200;300;400;500;700&display=swap" rel="stylesheet">
<style> <style>
{% include "api-doc.css" %} {% include "app/templates/api-doc.css" %}
</style> </style>
<script> <script>
{% include "api-doc.js" %} {% include "app/templates/api-doc.js" %}
</script> </script>
</head> </head>
<body> <body>
@ -26,21 +26,21 @@
<h2>RPC COMMAND METHODS:</h2> <h2>RPC COMMAND METHODS:</h2>
<ul class="rpc-items"> <ul class="rpc-items">
{% for item in command-methods %} {% for item in command-methods %}
{% include "api-doc-entry.tmpl" with item=item %} {% include "app/templates/api-doc-entry.tmpl" with item=item %}
{% endfor %} {% endfor %}
</ul> </ul>
<h2>RPC QUERY METHODS:</h2> <h2>RPC QUERY METHODS:</h2>
<ul class="rpc-items"> <ul class="rpc-items">
{% for item in query-methods %} {% for item in query-methods %}
{% include "api-doc-entry.tmpl" with item=item %} {% include "app/templates/api-doc-entry.tmpl" with item=item %}
{% endfor %} {% endfor %}
</ul> </ul>
<h2>RPC MUTATION METHODS:</h2> <h2>RPC MUTATION METHODS:</h2>
<ul class="rpc-items"> <ul class="rpc-items">
{% for item in mutation-methods %} {% for item in mutation-methods %}
{% include "api-doc-entry.tmpl" with item=item %} {% include "app/templates/api-doc-entry.tmpl" with item=item %}
{% endfor %} {% endfor %}
</ul> </ul>
</section> </section>

View file

@ -7,7 +7,7 @@
<title>{% block title %}{% endblock %}</title> <title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono"> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono">
<style> <style>
{% include "templates/styles.css" %} {% include "app/templates/styles.css" %}
</style> </style>
</head> </head>
<body> <body>

View file

@ -1,4 +1,4 @@
{% extends "templates/base.tmpl" %} {% extends "app/templates/base.tmpl" %}
{% block title %} {% block title %}
Debug Main Page Debug Main Page

View file

@ -1,4 +1,4 @@
{% extends "templates/base.tmpl" %} {% extends "app/templates/base.tmpl" %}
{% block title %} {% block title %}
penpot - error list penpot - error list

View file

@ -1,4 +1,4 @@
{% extends "templates/base.tmpl" %} {% extends "app/templates/base.tmpl" %}
{% block title %} {% block title %}
penpot - error report {{id}} penpot - error report {{id}}

View file

@ -66,7 +66,7 @@
:code :only-admins-allowed)) :code :only-admins-allowed))
(yrs/response :status 200 (yrs/response :status 200
:headers {"content-type" "text/html"} :headers {"content-type" "text/html"}
:body (-> (io/resource "templates/debug.tmpl") :body (-> (io/resource "app/templates/debug.tmpl")
(tmpl/render {})))) (tmpl/render {}))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -225,7 +225,7 @@
:trace (or (:trace report) :trace (or (:trace report)
(some-> report :error :trace)) (some-> report :error :trace))
:params (:params report)}] :params (:params report)}]
(-> (io/resource "templates/error-report.tmpl") (-> (io/resource "app/templates/error-report.tmpl")
(tmpl/render params))))] (tmpl/render params))))]
(when-not (authorized? pool request) (when-not (authorized? pool request)
@ -253,7 +253,7 @@
(let [items (db/exec! pool [sql:error-reports]) (let [items (db/exec! pool [sql:error-reports])
items (map #(update % :created-at dt/format-instant :rfc1123) items)] items (map #(update % :created-at dt/format-instant :rfc1123) items)]
(yrs/response :status 200 (yrs/response :status 200
:body (-> (io/resource "templates/error-list.tmpl") :body (-> (io/resource "app/templates/error-list.tmpl")
(tmpl/render {:items items})) (tmpl/render {:items items}))
:headers {"content-type" "text/html; charset=utf-8" :headers {"content-type" "text/html; charset=utf-8"
"x-robots-tag" "noindex"}))) "x-robots-tag" "noindex"})))

View file

@ -61,7 +61,7 @@
(if (contains? cf/flags :backend-api-doc) (if (contains? cf/flags :backend-api-doc)
(let [context (prepare-context methods)] (let [context (prepare-context methods)]
(fn [_ respond _] (fn [_ respond _]
(respond (yrs/response 200 (-> (io/resource "api-doc.tmpl") (respond (yrs/response 200 (-> (io/resource "app/templates/api-doc.tmpl")
(tmpl/render context)))))) (tmpl/render context))))))
(fn [_ respond _] (fn [_ respond _]
(respond (yrs/response 404))))) (respond (yrs/response 404)))))

View file

@ -178,7 +178,7 @@
;; Template Email Building ;; Template Email Building
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(def ^:private email-path "emails/%(id)s/%(lang)s.%(type)s") (def ^:private email-path "app/emails/%(id)s/%(lang)s.%(type)s")
(defn- render-email-template-part (defn- render-email-template-part
[type id context] [type id context]