Compare commits
3 Commits
master
...
did-branding
| Author | SHA1 | Date | |
|---|---|---|---|
| 873cd8ee2c | |||
| 2a1ed424a9 | |||
| 9d1077b8e4 |
+29
@@ -0,0 +1,29 @@
|
||||
# Changes from upstream (DiD, LLC)
|
||||
|
||||
This is a branding patch layer on top of docusealco/docuseal, maintained
|
||||
as a separate `did-branding` branch so it can be rebased against future
|
||||
upstream releases without editing upstream files directly. Base license
|
||||
is unchanged: AGPLv3, including the original DocuSeal attribution
|
||||
requirement in `LICENSE_ADDITIONAL_TERMS`.
|
||||
|
||||
## did-branding branch
|
||||
|
||||
- `tailwind.config.js`, `tailwind.dynamic.config.js`: replaced the default
|
||||
daisyui theme's color palette with DiD's brand palette (Deep Navy
|
||||
#022647, Lime Green #9BC73C, Light Blue #75B9FC, Soft Grey #CCD6D0),
|
||||
and added a `heading` font family slot.
|
||||
- `app/views/layouts/_head_tags.html.erb`: added Google Fonts links for
|
||||
Monda and Montserrat.
|
||||
- `app/javascript/application.scss`, `app/javascript/form.scss`: applied
|
||||
the Monda/Montserrat heading font to h1-h6.
|
||||
- `app/views/shared/_logo.html.erb`: recolored the DocuSeal logo mark
|
||||
from its default orange (#e97a42) to DiD's lime green (#9BC73C). The
|
||||
logo shape and "DocuSeal" text attribution are unchanged, per
|
||||
`LICENSE_ADDITIONAL_TERMS`.
|
||||
- `config/routes.rb`, `app/controllers/source_controller.rb`,
|
||||
`app/views/source/index.html.erb`: added an unauthenticated `/source`
|
||||
route publishing this instance's corresponding source (AGPLv3 §13),
|
||||
this CHANGES.md, and the bundled LICENSE / LICENSE_ADDITIONAL_TERMS text.
|
||||
|
||||
No application logic, data handling, or upstream file content was
|
||||
otherwise modified.
|
||||
+1
-1
@@ -81,7 +81,7 @@ COPY --chown=docuseal:docuseal ./log ./log
|
||||
COPY --chown=docuseal:docuseal ./lib ./lib
|
||||
COPY --chown=docuseal:docuseal ./public ./public
|
||||
COPY --chown=docuseal:docuseal ./tmp ./tmp
|
||||
COPY --chown=docuseal:docuseal LICENSE LICENSE_ADDITIONAL_TERMS README.md Rakefile config.ru .version ./
|
||||
COPY --chown=docuseal:docuseal LICENSE LICENSE_ADDITIONAL_TERMS CHANGES.md README.md Rakefile config.ru .version ./
|
||||
COPY --chown=docuseal:docuseal .version ./public/version
|
||||
|
||||
COPY --chown=docuseal:docuseal --from=download /fonts/GoNotoKurrent-Regular.ttf /fonts/GoNotoKurrent-Bold.ttf /fonts/DancingScript-Regular.otf /fonts/OFL.txt /fonts/LICENSE /fonts/
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# AGPLv3 Section 13 (network use) compliance: this route stays reachable
|
||||
# without sign-in or setup, unauthenticated, so the corresponding source
|
||||
# is available before any user interacts with the deployed instance.
|
||||
class SourceController < ApplicationController
|
||||
skip_before_action :authenticate_user!, raise: false
|
||||
skip_before_action :maybe_redirect_to_setup, raise: false
|
||||
skip_authorization_check
|
||||
|
||||
layout 'plain'
|
||||
|
||||
SOURCE_REPO_URL = ENV.fetch('DID_SOURCE_REPO_URL', 'https://repo.diditvi.com/didadmin/docuseal')
|
||||
SOURCE_COMMIT = ENV.fetch('DID_SOURCE_COMMIT', 'unknown')
|
||||
|
||||
def index
|
||||
@source_repo_url = SOURCE_REPO_URL
|
||||
@source_commit = SOURCE_COMMIT
|
||||
@license = File.read(Rails.root.join('LICENSE'))
|
||||
@additional_terms = File.read(Rails.root.join('LICENSE_ADDITIONAL_TERMS'))
|
||||
@changes = File.read(Rails.root.join('CHANGES.md'))
|
||||
end
|
||||
end
|
||||
@@ -166,3 +166,7 @@ button[disabled] .enabled, button.btn-disabled .enabled {
|
||||
markdown-editor [contenteditable] p {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: theme('fontFamily.heading');
|
||||
}
|
||||
|
||||
@@ -78,3 +78,7 @@ button[disabled] .enabled, button.btn-disabled .enabled {
|
||||
.font-courier {
|
||||
font-family: "Courier New", Consolas, "Liberation Mono", monospace, ui-monospace, SFMono-Regular, Menlo, Monaco;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: theme('fontFamily.heading');
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<title>
|
||||
<%= content_for(:html_title) || (signed_in? ? 'DocuSeal' : 'DocuSeal | Open Source Document Signing') %>
|
||||
</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Monda:wght@400..700&family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<%= render 'shared/meta' %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<svg class="<%= local_assigns[:class] %>" height="<%= local_assigns.fetch(:height, '37') %>" width="<%= local_assigns.fetch(:width, '37') %>" style="color: #e97a42" viewBox="0 0 180 180" xmlns="http://www.w3.org/2000/svg">
|
||||
<svg class="<%= local_assigns[:class] %>" height="<%= local_assigns.fetch(:height, '37') %>" width="<%= local_assigns.fetch(:width, '37') %>" style="color: #9BC73C" viewBox="0 0 180 180" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill="currentColor" d="M 178.224 72.09 c -0.296 -1.463 -0.627 -2.919 -0.996 -4.364 -0.293 -1.151 -0.616 -2.293 -0.956 -3.433 -0.301 -1.008 -0.612 -2.014 -0.95 -3.012 -0.531 -1.578 -1.113 -3.142 -1.735 -4.694 -0.216 -0.54 -0.433 -1.082 -0.661 -1.618 -0.195 -0.462 -0.399 -0.917 -0.601 -1.375 -0.262 -0.591 -0.53 -1.177 -0.804 -1.762 -0.074 -0.159 -0.151 -0.315 -0.226 -0.474 -0.209 -0.441 -0.422 -0.881 -0.638 -1.318 -0.076 -0.154 -0.153 -0.306 -0.229 -0.459 -0.236 -0.471 -0.477 -0.939 -0.721 -1.406 -0.053 -0.101 -0.105 -0.201 -0.158 -0.302 -1.143 -2.16 -2.367 -4.269 -3.68 -6.322 -0.116 -0.181 -0.237 -0.359 -0.355 -0.539 -0.094 -0.144 -0.189 -0.288 -0.284 -0.432 -0.284 -0.431 -0.57 -0.861 -0.862 -1.287 -0.112 -0.164 -0.225 -0.326 -0.338 -0.489 -0.193 -0.279 -0.382 -0.56 -0.579 -0.836 -0.089 -0.125 -0.182 -0.249 -0.273 -0.374 -0.13 -0.182 -0.264 -0.362 -0.395 -0.542 -0.277 -0.38 -0.556 -0.76 -0.838 -1.135 -0.15 -0.199 -0.303 -0.395 -0.454 -0.593 -0.21 -0.274 -0.417 -0.552 -0.63 -0.823 -0.055 -0.069 -0.111 -0.136 -0.166 -0.205 -0.482 -0.61 -0.971 -1.216 -1.47 -1.814 -0.129 -0.155 -0.262 -0.306 -0.392 -0.461 -0.402 -0.476 -0.808 -0.95 -1.22 -1.417 -0.186 -0.212 -0.375 -0.422 -0.563 -0.631 -0.384 -0.428 -0.773 -0.854 -1.167 -1.276 -0.176 -0.189 -0.351 -0.379 -0.529 -0.567 -0.564 -0.595 -1.134 -1.186 -1.716 -1.768 -1.091 -1.091 -2.207 -2.15 -3.346 -3.178 -1.016 -0.919 -2.05 -1.815 -3.103 -2.684 -0.772 -0.636 -1.557 -1.255 -2.348 -1.864 -3.465 -2.67 -7.112 -5.075 -10.927 -7.209 -2.869 -1.604 -5.83 -3.06 -8.883 -4.351 -2.443 -1.033 -4.922 -1.948 -7.428 -2.756 -8.879 -2.863 -18.13 -4.318 -27.605 -4.318 -3.19 0 -6.354 0.169 -9.488 0.496 -4.036 0.421 -8.019 1.114 -11.94 2.073 -1.732 0.423 -3.452 0.892 -5.157 1.42 -2.856 0.883 -5.673 1.912 -8.447 3.085 -2.645 1.118 -5.222 2.357 -7.729 3.711 -2.574 1.39 -5.073 2.901 -7.494 4.533 -1.195 0.805 -2.37 1.64 -3.527 2.503 -1.156 0.864 -2.292 1.756 -3.408 2.676 -0.553 0.456 -1.1 0.919 -1.643 1.389 -1.649 1.427 -3.252 2.92 -4.806 4.473 -2.582 2.582 -4.991 5.299 -7.222 8.138 -0.892 1.135 -1.756 2.292 -2.59 3.467 -0.417 0.588 -0.827 1.18 -1.23 1.778 -0.403 0.597 -0.798 1.199 -1.186 1.806 -0.388 0.607 -0.769 1.218 -1.143 1.835 -2.241 3.697 -4.216 7.562 -5.916 11.582 -1.095 2.589 -2.059 5.217 -2.901 7.877 -0.153 0.482 -0.3 0.965 -0.444 1.449 -0.339 1.14 -0.663 2.282 -0.956 3.433 -0.369 1.446 -0.7 2.901 -0.996 4.364 -1.034 5.121 -1.618 10.343 -1.749 15.637 -0.018 0.757 -0.028 1.514 -0.028 2.274 0 1.123 0.02 2.244 0.062 3.361 0.285 7.82 1.568 15.475 3.825 22.879 0.044 0.147 0.088 0.295 0.133 0.441 0.877 2.823 1.894 5.608 3.054 8.35 0.85 2.009 1.769 3.98 2.755 5.912 0.539 1.057 1.105 2.099 1.685 3.132 4.013 7.142 8.98 13.698 14.846 19.564 7.713 7.713 16.611 13.878 26.477 18.352 0.705 0.32 1.415 0.632 2.131 0.935 2.081 0.88 4.185 1.679 6.313 2.396 9.217 3.106 18.85 4.677 28.719 4.677 8.031 0 15.902 -1.047 23.522 -3.107 0.633 -0.172 1.266 -0.35 1.895 -0.535 0.757 -0.222 1.509 -0.456 2.26 -0.698 0.717 -0.232 1.431 -0.474 2.145 -0.723 1.752 -0.616 3.49 -1.281 5.211 -2.009 0.755 -0.319 1.503 -0.651 2.247 -0.989 1.237 -0.563 2.459 -1.15 3.664 -1.766 0.644 -0.328 1.283 -0.665 1.917 -1.009 1.654 -0.896 3.274 -1.848 4.865 -2.844 5.736 -3.591 11.06 -7.827 15.912 -12.679 0.775 -0.775 1.534 -1.562 2.278 -2.36 5.204 -5.59 9.636 -11.754 13.246 -18.417 0.343 -0.634 0.68 -1.274 1.009 -1.917 0.482 -0.944 0.943 -1.9 1.392 -2.863 0.471 -1.007 0.928 -2.021 1.364 -3.049 1.22 -2.886 2.281 -5.82 3.187 -8.793 0.559 -1.833 1.056 -3.68 1.494 -5.542 0.108 -0.458 0.211 -0.916 0.312 -1.376 0.194 -0.883 0.373 -1.77 0.539 -2.659 1.02 -5.455 1.542 -11.02 1.542 -16.663 0 -6.074 -0.595 -12.058 -1.776 -17.911 z m -161.733 19.614 c -1.118 -56.662 44.604 -74.877 60.998 -67.647 2.187 0.965 4.732 2.431 7.042 2.96 5.295 1.213 13.432 -3.113 13.521 6.273 0.078 8.156 -3.389 13.108 -10.797 16.177 -7.539 3.124 -14.777 9.181 -19.95 15.493 -21.487 26.216 -31.231 68.556 -7.565 94.296 -13.679 -5.545 -42.418 -25.467 -43.248 -67.552 z m 91.109 72.619 c -0.053 0.008 -4.171 0.775 -4.171 0.775 0 0 -15.862 -22.957 -23.509 -21.719 11.291 16.04 12.649 22.625 12.649 22.625 -0.053 0.001 -0.107 0.001 -0.161 0.003 -51.831 2.131 -42.785 -64.026 -28.246 -86.502 -1.555 13.073 8.878 39.992 39.034 44.1 9.495 1.293 32.302 -3.275 41.015 -11.38 0.098 1.825 0.163 3.85 0.159 6.013 -0.046 23.538 -13.47 42.743 -36.77 46.085 z m 30.575 -15.708 c 9.647 -9.263 12.869 -27.779 9.103 -44.137 -4.608 -20.011 -28.861 -32.383 -40.744 -35.564 5.766 -8.089 27.908 -14.274 39.567 5.363 -5.172 -10.519 -13.556 -23.023 -1.732 -33.128 12.411 13.329 19.411 29.94 20.161 48.7 0.75 18.753 -6.64 41.768 -26.355 58.765 z" />
|
||||
<circle fill="currentColor" cx="71.927" cy="32.004" r="2.829" />
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
@@ -0,0 +1,31 @@
|
||||
<div class="max-w-3xl mx-auto p-8 space-y-8">
|
||||
<div>
|
||||
<h1 class="text-3xl font-bold mb-2">Source Code</h1>
|
||||
<p>
|
||||
This is a DiD-branded build of
|
||||
<a href="https://github.com/docusealco/docuseal" class="link" target="_blank" rel="noopener">DocuSeal</a>,
|
||||
licensed under the GNU Affero General Public License v3 (AGPLv3).
|
||||
In accordance with AGPLv3 Section 13, the complete corresponding source
|
||||
for this exact running instance is published here:
|
||||
</p>
|
||||
<p class="mt-2">
|
||||
<a href="<%= @source_repo_url %>" class="link link-primary text-lg" target="_blank" rel="noopener"><%= @source_repo_url %></a>
|
||||
</p>
|
||||
<p class="text-sm opacity-70 mt-1">Running commit: <code><%= @source_commit %></code></p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2 class="text-xl font-bold mb-2">Changes from upstream</h2>
|
||||
<pre class="whitespace-pre-wrap text-sm bg-base-200 rounded-lg p-4"><%= @changes %></pre>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2 class="text-xl font-bold mb-2">License (AGPLv3)</h2>
|
||||
<pre class="whitespace-pre-wrap text-xs bg-base-200 rounded-lg p-4 max-h-96 overflow-y-auto"><%= @license %></pre>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2 class="text-xl font-bold mb-2">Additional Terms</h2>
|
||||
<pre class="whitespace-pre-wrap text-sm bg-base-200 rounded-lg p-4"><%= @additional_terms %></pre>
|
||||
</div>
|
||||
</div>
|
||||
@@ -11,6 +11,8 @@ Rails.application.routes.draw do
|
||||
|
||||
root 'dashboard#index'
|
||||
|
||||
get '/source', to: 'source#index'
|
||||
|
||||
get 'up' => 'rails/health#show'
|
||||
get 'manifest' => 'pwa#manifest'
|
||||
|
||||
|
||||
+16
-8
@@ -2,19 +2,27 @@ module.exports = {
|
||||
plugins: [
|
||||
require('daisyui')
|
||||
],
|
||||
theme: {
|
||||
extend: {
|
||||
fontFamily: {
|
||||
sans: ['Montserrat', '-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', 'sans-serif'],
|
||||
heading: ['Monda', 'Montserrat', 'sans-serif']
|
||||
}
|
||||
}
|
||||
},
|
||||
daisyui: {
|
||||
themes: [
|
||||
{
|
||||
docuseal: {
|
||||
'color-scheme': 'light',
|
||||
primary: '#e4e0e1',
|
||||
secondary: '#ef9fbc',
|
||||
accent: '#eeaf3a',
|
||||
neutral: '#291334',
|
||||
'base-100': '#faf7f5',
|
||||
'base-200': '#efeae6',
|
||||
'base-300': '#e7e2df',
|
||||
'base-content': '#291334',
|
||||
primary: '#022647',
|
||||
secondary: '#75B9FC',
|
||||
accent: '#9BC73C',
|
||||
neutral: '#022647',
|
||||
'base-100': '#FFFFFF',
|
||||
'base-200': '#CCD6D0',
|
||||
'base-300': '#AFC0B8',
|
||||
'base-content': '#022647',
|
||||
'--rounded-btn': '1.9rem',
|
||||
'--tab-border': '2px',
|
||||
'--tab-radius': '.5rem'
|
||||
|
||||
@@ -8,10 +8,10 @@ module.exports = {
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
'base-100': '#faf7f5',
|
||||
'base-200': '#efeae6',
|
||||
'base-300': '#e7e2df',
|
||||
'base-content': '#291334'
|
||||
'base-100': '#FFFFFF',
|
||||
'base-200': '#CCD6D0',
|
||||
'base-300': '#AFC0B8',
|
||||
'base-content': '#022647'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user