app/services/get_started_note_creator.rb
# frozen_string_literal: true
class GetStartedNoteCreator
TITLE = 'Get started'
# rubocop:disable Layout/LineLength
CONTENT = %{<h2><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgaGVpZ2h0PSI3MC4yNjk5OTciCiAgIHdpZHRoPSI2Ny43NTAzODkiCiAgIGlkPSJFYmVuZV8xIgogICBkYXRhLW5hbWU9IkViZW5lIDEiCiAgIHZpZXdCb3g9IjAgMCA2Ny43NTAzODkgNzAuMjY5OTk3IgogICB2ZXJzaW9uPSIxLjEiCiAgIHNvZGlwb2RpOmRvY25hbWU9ImxvZ29fbXlrb25vdGVfY19pbnZlcnRfbm9fcGFkZGluZy5zdmciCiAgIGlua3NjYXBlOnZlcnNpb249IjEuMS4yICgwYTAwY2Y1MzM5LCAyMDIyLTAyLTA0KSIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIGlkPSJuYW1lZHZpZXc5IgogICAgIHBhZ2Vj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0LjEgWiIKICAgICBpZD0icGF0aDEyIiAvPgo8L3N2Zz4K"></h2><h2><br></h2><h2>Welcome!</h2><p><br></p><p>You can access the <strong>web application</strong> at <a href="https://app.unnote.io" target="_blank">app.unnote.io</a>.</p><p>The <strong>PWA</strong> can also be installed from <a href="https://app.unnote.io" rel="noopener noreferrer" target="_blank">app.unnote.io</a>.</p><p><br></p><p><br></p><h2>Data Privacy</h2><p><br></p><p>The servers are <strong>located in Switzerland</strong>.</p><p>All your data belong to you, protected by the <a href="https://www.kmu.admin.ch/kmu/en/home/facts-and-trends/digitization/data-protection/new-federal-act-on-data-protection-nfadp.html" rel="noopener noreferrer" target="_blank">New Federal Act on Data Protection (nFADP)</a>.</p><p>Unnote is <strong>free software</strong> (released under the <a href="https://www.gnu.org/licenses/agpl-3.0.html" target="_blank">GNU AGPL v3</a>).</p><p>There will <strong>never</strong> be any <strong>weird business</strong> going on <strong>with your data</strong>.</p><p><br></p><p><br></p><h2>Free plan</h2><p><br></p><p>You have been subscribed to the <strong>free plan</strong>. This means that you are <strong>limited </strong>to <strong>100 notes</strong>. Otherwise there's no difference to the pro subscription.</p><p><br></p><p><br></p><h2>And finally, some links</h2><p><br></p><ul><li><a href="https://github.com/koffeinfrei/unnote" target="_blank">Source code on GitHub</a></li><li><a href="https://www.koffeinfrei.org/" target="_blank">Koffeinfrei</a></li></ul><p><br></p><p><br></p><p>Made with ☕️ by <a href="https://www.koffeinfrei.org" rel="noopener noreferrer" target="_blank">Koffeinfrei (Alexis Reigel)</a> & <a href="https://www.panter.ch" rel="noopener noreferrer" target="_blank">The Panters</a></p>}
# rubocop:enable Layout/LineLength
def initialize(user)
@user = user
end
def run
Note.create(
title: TITLE,
content: CONTENT.dup,
uid: SecureRandom.uuid,
user: @user
)
end
end