This commit is contained in:
Tracker-Friendly 2024-02-27 20:04:26 +00:00
parent 5c23acb91c
commit e897c7d563
15 changed files with 334 additions and 138 deletions

View File

@ -28,11 +28,13 @@ clean:
install: pageburger
mkdir -p $(DESTDIR)
cp pageburger $(DESTDIR)
mkdir -p $(SHAREDIR)/pageburger
cp pageburger $(SHAREDIR)/pageburger/
ln -sf $(SHAREDIR)/pageburger/pageburger $(DESTDIR)/pageburger
mkdir -p $(SHAREDIR)/icons/hicolor/scalable/apps/
mkdir -p $(SHAREDIR)/applications/
mkdir -p $(SHAREDIR)/metainfo/
cp org.hectabit.PageBurger.svg $(SHAREDIR)/icons/hicolor/scalable/apps/
cp org.hectabit.PageBurger.desktop $(SHAREDIR)/applications/
cp org.hectabit.PageBurger.metainfo.xml $(SHAREDIR)/metainfo/
cp -r website $(SHAREDIR)/pageburger
cp -r website $(SHAREDIR)/pageburger/website

14
createwebsite.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
cd $(dirname "$(readlink -f "$0")")
git clone https://centrifuge.hectabit.org/hectabit/burgernotes --depth=1
cd burgernotes
mkdir -p ../website/static ../website/app ../website/error ../website/login ../website/logout ../website/privacy ../website/signup
cp -r static/* ../website/static
cp templates/app.html ../website/app/index.html
cp templates/error.html ../website/error/index.html
cp templates/login.html ../website/login/index.html
cp ../logout.html ../website/logout/index.html
cp templates/privacy.html ../website/privacy/index.html
cp templates/signup.html ../website/signup/index.html
cd ..
rm -rf burgernotes

15
logout.html Normal file
View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>Burgernotes</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<head>
Logging out..
<script>
localStorage.removeItem("DONOTSHARE-secretkey")
localStorage.removeItem("DONOTSHARE-password")
localStorage.removeItem("CACHE-username")
window.location.replace("../login/index.html")
</script>

View File

@ -2,9 +2,9 @@
<component type="desktop-application">
<id>org.hectabit.PageBurger</id>
<name>PageBurger</name>
<name>Burgernotes</name>
<summary>Simple, private notes app</summary>
<developer_name>Arzumify</developer_name>
<developer_name>Hectabit</developer_name>
<metadata_license>MIT</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
@ -50,6 +50,18 @@
</branding>
<releases>
<release version="1.1" date="2024-02-26">
<url type="details">https://centrifuge.hectabit.org/HectaBit/PageBurger-App/releases/tag/1.1</url>
<description>
<p>Release 1.1</p>
<ul>
<li>Make website local to prevent MITMs</li>
<li>Make icon smaller</li>
<li>Changed name</li>
<li>Fixed developer name</li>
</ul>
</description>
</release>
<release version="1.0-3" date="2024-02-26">
<url type="details">https://centrifuge.hectabit.org/HectaBit/PageBurger-App/releases/tag/1.0-3</url>
<description>

View File

@ -1,55 +1,238 @@
<svg width="384" height="384" viewBox="0 0 384 384" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_5_50)">
<path d="M384 277.333C384 300.896 364.896 320 341.333 320H85.3333C61.7707 320 42.6667 300.896 42.6667 277.333V67.3387C42.6667 43.776 104.437 0 128 0H326.667C359.669 0 384 24.6613 384 57.3333V277.333Z" fill="#226699"/>
<path d="M362.667 320C362.667 343.563 343.563 362.667 320 362.667H106.667C83.104 362.667 64 343.563 64 320V64C64 20.064 63.776 21.3333 117.333 21.3333H320C343.563 21.3333 362.667 40.4373 362.667 64V320Z" fill="url(#paint0_linear_5_50)"/>
<path d="M341.333 330.667C341.333 348.341 327.008 362.667 309.333 362.667H74.6667C56.992 362.667 42.6667 348.341 42.6667 330.667V74.6667C42.6667 56.992 56.992 42.6667 74.6667 42.6667H309.333C327.008 42.6667 341.333 56.992 341.333 74.6667V330.667Z" fill="#E1E8ED"/>
<path d="M91.1147 351.776C91.1147 359.264 84 365.333 75.2213 365.333C66.4533 365.333 59.3387 359.264 59.3387 351.776C59.3387 344.299 66.4533 338.219 75.2213 338.219C84 338.219 91.1147 344.288 91.1147 351.776Z" fill="#662113"/>
<path d="M73.536 344.224C68.416 344.811 65.088 348.224 62.688 352C59.4133 357.173 51.9467 362.667 42.6667 362.667C30.8907 362.667 21.3333 355.509 21.3333 346.667C21.3333 337.824 30.8907 330.667 42.6667 330.667V309.376C19.552 309.6 0.885345 326.176 0.885345 346.667C0.885345 367.296 19.7867 384 43.104 384C62.88 384 78.8053 372.853 84.7147 356.597C87.6693 348.501 79.712 343.541 73.536 344.224Z" fill="url(#paint1_linear_5_50)"/>
<path d="M91.1147 266.443C91.1147 273.931 84 280 75.2213 280C66.4533 280 59.3387 273.931 59.3387 266.443C59.3387 258.965 66.4533 252.885 75.2213 252.885C84 252.885 91.1147 258.955 91.1147 266.443Z" fill="#662113"/>
<path d="M73.536 258.891C68.416 259.477 65.088 262.891 62.688 266.667C59.4133 271.84 51.9467 277.333 42.6667 277.333C30.8907 277.333 21.3333 270.176 21.3333 261.333C21.3333 252.491 30.8907 245.333 42.6667 245.333V224.043C19.552 224.267 0.885345 240.843 0.885345 261.333C0.885345 281.963 19.7867 298.667 43.104 298.667C62.88 298.667 78.8053 287.52 84.7147 271.264C87.6693 263.168 79.712 258.208 73.536 258.891Z" fill="url(#paint2_linear_5_50)"/>
<path d="M91.1147 181.109C91.1147 188.597 84 194.667 75.2213 194.667C66.4533 194.667 59.3387 188.597 59.3387 181.109C59.3387 173.632 66.4533 167.552 75.2213 167.552C84 167.552 91.1147 173.621 91.1147 181.109Z" fill="#662113"/>
<path d="M73.536 173.557C68.416 174.144 65.088 177.557 62.688 181.333C59.4133 186.507 51.9467 192 42.6667 192C30.8907 192 21.3333 184.843 21.3333 176C21.3333 167.157 30.8907 160 42.6667 160V138.709C19.552 138.933 0.885345 155.509 0.885345 176C0.885345 196.629 19.7867 213.333 43.104 213.333C62.88 213.333 78.8053 202.187 84.7147 185.931C87.6693 177.835 79.712 172.875 73.536 173.557Z" fill="url(#paint3_linear_5_50)"/>
<path d="M91.1147 95.776C91.1147 103.264 84 109.333 75.2213 109.333C66.4533 109.333 59.3387 103.264 59.3387 95.776C59.3387 88.2987 66.4533 82.2187 75.2213 82.2187C84 82.2187 91.1147 88.288 91.1147 95.776Z" fill="#662113"/>
<path d="M73.536 88.224C68.416 88.8107 65.088 92.224 62.688 96C59.4133 101.173 51.9467 106.667 42.6667 106.667C30.8907 106.667 21.3333 99.5093 21.3333 90.6667C21.3333 81.824 30.8907 74.6667 42.6667 74.6667V53.376C19.5627 53.5893 0.885345 70.176 0.885345 90.6667C0.885345 111.296 19.7867 128 43.104 128C62.88 128 78.8053 116.853 84.7147 100.597C87.6693 92.5013 79.712 87.5413 73.536 88.224Z" fill="url(#paint4_linear_5_50)"/>
<path d="M214 225.771C125.496 225.771 53.7561 223.646 53.7561 286.47C53.7561 349.266 125.496 363.556 214 363.556C302.504 363.556 374.244 349.266 374.244 286.47C374.244 223.655 302.504 225.771 214 225.771Z" fill="#D99E82"/>
<path d="M369.55 230.54C369.55 230.54 291.926 221.247 214 220.85C136.074 221.247 58.45 230.54 58.45 230.54C50.7717 291.683 114.522 316.872 214 316.872C313.478 316.872 377.228 291.683 369.55 230.54Z" fill="#662113"/>
<path d="M364.034 206.098L63.1817 212.199C52.7928 212.199 44.0944 233.251 55.1161 238.757C137.358 264.332 203.469 290.21 203.469 290.21C212.555 295.234 215.624 295.253 224.719 290.238C224.719 290.238 316.009 253.707 374.65 238.36C382.971 236.188 374.414 206.098 364.034 206.098Z" fill="#FFCC4D"/>
<path d="M371.958 206.891C354.014 190.354 355.053 199.156 341.302 195.274C336.079 193.801 298.707 145.493 213.528 145.493H213.339C128.159 145.493 90.7878 193.801 85.565 195.274C71.8139 199.156 72.8528 190.354 54.9083 206.891C46.6728 214.484 44.4439 218.432 53.1328 220.397C66.2228 223.353 65.0328 231.277 74.4111 234.034C85.7633 237.368 90.4289 231.277 108.732 233.77C124.344 235.895 125.364 256.144 141.117 256.144C156.871 256.144 156.871 248.588 172.614 248.588C188.358 248.588 197.671 268.856 213.424 268.856C229.177 268.856 238.48 248.588 254.233 248.588C269.987 248.588 269.987 256.144 285.731 256.144C301.484 256.144 302.504 235.895 318.116 233.77C336.419 231.286 341.094 237.368 352.437 234.034C361.815 231.277 360.625 223.362 373.715 220.397C382.423 218.442 380.203 214.484 371.958 206.891Z" fill="#77B255"/>
<path d="M365.838 189.022C365.838 217.204 297.857 230.512 214 230.512C130.143 230.512 62.1617 217.204 62.1617 189.022C62.1617 137.994 71.285 137.994 214 137.994C356.715 137.994 365.838 138.003 365.838 189.022Z" fill="#DD2E44"/>
<path d="M214 37.9489C125.496 37.9489 53.7561 79.4194 53.7561 142.234C53.7561 200.082 125.496 202.443 214 202.443C302.504 202.443 374.244 200.082 374.244 142.234C374.244 79.41 302.504 37.9489 214 37.9489Z" fill="#D99E82"/>
<path d="M145.849 67.8972C141.146 64.8844 134.903 66.2633 131.899 70.9667C128.896 75.67 130.266 81.9222 134.969 84.9161C139.672 87.9289 151.591 90.1767 154.604 85.4733C157.607 80.77 150.552 70.9006 145.849 67.8972ZM237.781 58.1222C232.473 59.8411 223.152 67.6233 224.88 72.9311C226.608 78.2389 238.707 79.0511 244.014 77.3322C249.322 75.6133 252.222 69.9089 250.493 64.6011C248.774 59.3028 243.07 56.3939 237.781 58.1222ZM340.811 124.564C336.542 120.975 325.841 126.689 322.243 130.958C318.654 135.236 319.211 141.602 323.48 145.191C327.749 148.779 334.124 148.222 337.713 143.953C341.311 139.675 345.089 128.153 340.811 124.564ZM306.404 77.3417C301.701 74.3383 295.458 75.7172 292.446 80.4206C289.442 85.1239 290.821 91.3667 295.524 94.37C300.228 97.3828 312.147 99.6306 315.15 94.9272C318.163 90.2144 311.108 80.345 306.404 77.3417ZM164.738 143.453C160.034 140.449 153.792 141.828 150.779 146.532C147.776 151.226 149.154 157.478 153.858 160.472C158.561 163.484 170.48 165.742 173.483 161.029C176.496 156.326 169.441 146.456 164.738 143.453ZM193.506 98.0439C190.332 102.634 187.65 114.468 192.249 117.641C196.839 120.814 206.954 114.109 210.128 109.519C213.301 104.929 212.139 98.6389 207.549 95.4656C202.969 92.2922 196.669 93.4539 193.506 98.0439ZM268.627 143.453C263.923 140.449 257.681 141.828 254.668 146.532C251.664 151.226 253.043 157.487 257.747 160.472C262.45 163.484 274.369 165.742 277.372 161.029C280.385 156.326 273.33 146.456 268.627 143.453ZM90.7311 106.742C87.01 110.907 82.8639 122.307 87.0289 126.028C91.175 129.749 102.055 124.384 105.776 120.219C109.507 116.064 109.148 109.679 104.992 105.949C100.846 102.228 94.4522 102.587 90.7311 106.742Z" fill="#FFE8B6"/>
</g>
<path d="M341.333 341.333C341.333 364.896 322.229 384 298.667 384H96C72.4373 384 53.3333 364.896 53.3333 341.333V106.667C53.3333 83.104 72.4373 64 96 64H298.667C322.229 64 341.333 83.104 341.333 106.667V341.333Z" fill="#3B88C3"/>
<path d="M320 341.333C320 364.896 300.896 384 277.333 384H96C72.4373 384 53.3333 364.896 53.3333 341.333V128C53.3333 104.437 72.4373 85.3333 96 85.3333H280.907C304.469 85.3333 320 100.864 320 124.427V341.333Z" fill="url(#paint5_linear_5_50)"/>
<path d="M96 64C77.9947 64 77.536 43.4987 85.3334 34.6667C94.208 24.6293 108 21.3333 132.672 21.3333H149.333V0H120.331C77.9947 0 42.6667 26.6667 42.6667 57.3333V341.333C42.6667 364.896 61.7707 384 85.3334 384H106.667V64H96Z" fill="#226699"/>
<defs>
<linearGradient id="paint0_linear_5_50" x1="213.333" y1="21.3295" x2="213.333" y2="362.667" gradientUnits="userSpaceOnUse">
<stop stop-color="#CCD6DD"/>
<stop offset="1" stop-color="#CCD6DD" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint1_linear_5_50" x1="43.118" y1="309.376" x2="43.118" y2="384" gradientUnits="userSpaceOnUse">
<stop stop-color="#66757F"/>
<stop offset="1" stop-color="#50585C"/>
<stop offset="1" stop-color="#50585C"/>
</linearGradient>
<linearGradient id="paint2_linear_5_50" x1="43.118" y1="224.043" x2="43.118" y2="298.667" gradientUnits="userSpaceOnUse">
<stop stop-color="#66757F"/>
<stop offset="1" stop-color="#50585C"/>
</linearGradient>
<linearGradient id="paint3_linear_5_50" x1="43.118" y1="138.709" x2="43.118" y2="213.333" gradientUnits="userSpaceOnUse">
<stop stop-color="#66757F"/>
<stop offset="1" stop-color="#50585C"/>
</linearGradient>
<linearGradient id="paint4_linear_5_50" x1="43.118" y1="53.376" x2="43.118" y2="128" gradientUnits="userSpaceOnUse">
<stop stop-color="#66757F"/>
<stop offset="1" stop-color="#50585C"/>
</linearGradient>
<linearGradient id="paint5_linear_5_50" x1="186.667" y1="85.3333" x2="186.667" y2="384" gradientUnits="userSpaceOnUse">
<stop stop-color="#55ACEE"/>
<stop offset="1" stop-color="#55ACEE" stop-opacity="0"/>
</linearGradient>
<clipPath id="clip0_5_50">
<rect width="384" height="384" fill="white"/>
</clipPath>
</defs>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="384"
height="384"
viewBox="0 0 384 384"
fill="none"
version="1.1"
id="svg33"
sodipodi:docname="org.hectabit.PageBurger.svg"
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview33"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="0.61458333"
inkscape:cx="191.18644"
inkscape:cy="191.18644"
inkscape:window-width="1432"
inkscape:window-height="831"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg33" />
<g
clip-path="url(#clip0_5_50)"
id="g18"
transform="matrix(0.59873694,0,0,0.59873695,77.220137,77.042507)">
<path
d="M 384,277.333 C 384,300.896 364.896,320 341.333,320 H 85.3333 C 61.7707,320 42.6667,300.896 42.6667,277.333 V 67.3387 C 42.6667,43.776 104.437,0 128,0 H 326.667 C 359.669,0 384,24.6613 384,57.3333 Z"
fill="#226699"
id="path1" />
<path
d="m 362.667,320 c 0,23.563 -19.104,42.667 -42.667,42.667 H 106.667 C 83.104,362.667 64,343.563 64,320 V 64 C 64,20.064 63.776,21.3333 117.333,21.3333 H 320 c 23.563,0 42.667,19.104 42.667,42.6667 z"
fill="url(#paint0_linear_5_50)"
id="path2"
style="fill:url(#paint0_linear_5_50)" />
<path
d="m 341.333,330.667 c 0,17.674 -14.325,32 -32,32 H 74.6667 c -17.6747,0 -32,-14.326 -32,-32 V 74.6667 c 0,-17.6747 14.3253,-32 32,-32 H 309.333 c 17.675,0 32,14.3253 32,32 z"
fill="#e1e8ed"
id="path3" />
<path
d="m 91.1147,351.776 c 0,7.488 -7.1147,13.557 -15.8934,13.557 -8.768,0 -15.8826,-6.069 -15.8826,-13.557 0,-7.477 7.1146,-13.557 15.8826,-13.557 8.7787,0 15.8934,6.069 15.8934,13.557 z"
fill="#662113"
id="path4" />
<path
d="m 73.536,344.224 c -5.12,0.587 -8.448,4 -10.848,7.776 -3.2747,5.173 -10.7413,10.667 -20.0213,10.667 -11.776,0 -21.3334,-7.158 -21.3334,-16 0,-8.843 9.5574,-16 21.3334,-16 V 309.376 C 19.552,309.6 0.885345,326.176 0.885345,346.667 0.885345,367.296 19.7867,384 43.104,384 62.88,384 78.8053,372.853 84.7147,356.597 87.6693,348.501 79.712,343.541 73.536,344.224 Z"
fill="url(#paint1_linear_5_50)"
id="path5"
style="fill:url(#paint1_linear_5_50)" />
<path
d="M 91.1147,266.443 C 91.1147,273.931 84,280 75.2213,280 c -8.768,0 -15.8826,-6.069 -15.8826,-13.557 0,-7.478 7.1146,-13.558 15.8826,-13.558 8.7787,0 15.8934,6.07 15.8934,13.558 z"
fill="#662113"
id="path6" />
<path
d="m 73.536,258.891 c -5.12,0.586 -8.448,4 -10.848,7.776 -3.2747,5.173 -10.7413,10.666 -20.0213,10.666 -11.776,0 -21.3334,-7.157 -21.3334,-16 0,-8.842 9.5574,-16 21.3334,-16 v -21.29 c -23.1147,0.224 -41.781355,16.8 -41.781355,37.29 0,20.63 18.901355,37.334 42.218655,37.334 19.776,0 35.7013,-11.147 41.6107,-27.403 2.9546,-8.096 -5.0027,-13.056 -11.1787,-12.373 z"
fill="url(#paint2_linear_5_50)"
id="path7"
style="fill:url(#paint2_linear_5_50)" />
<path
d="m 91.1147,181.109 c 0,7.488 -7.1147,13.558 -15.8934,13.558 -8.768,0 -15.8826,-6.07 -15.8826,-13.558 0,-7.477 7.1146,-13.557 15.8826,-13.557 8.7787,0 15.8934,6.069 15.8934,13.557 z"
fill="#662113"
id="path8" />
<path
d="m 73.536,173.557 c -5.12,0.587 -8.448,4 -10.848,7.776 C 59.4133,186.507 51.9467,192 42.6667,192 c -11.776,0 -21.3334,-7.157 -21.3334,-16 0,-8.843 9.5574,-16 21.3334,-16 V 138.709 C 19.552,138.933 0.885345,155.509 0.885345,176 c 0,20.629 18.901355,37.333 42.218655,37.333 19.776,0 35.7013,-11.146 41.6107,-27.402 2.9546,-8.096 -5.0027,-13.056 -11.1787,-12.374 z"
fill="url(#paint3_linear_5_50)"
id="path9"
style="fill:url(#paint3_linear_5_50)" />
<path
d="m 91.1147,95.776 c 0,7.488 -7.1147,13.557 -15.8934,13.557 -8.768,0 -15.8826,-6.069 -15.8826,-13.557 0,-7.4773 7.1146,-13.5573 15.8826,-13.5573 8.7787,0 15.8934,6.0693 15.8934,13.5573 z"
fill="#662113"
id="path10" />
<path
d="m 73.536,88.224 c -5.12,0.5867 -8.448,4 -10.848,7.776 -3.2747,5.173 -10.7413,10.667 -20.0213,10.667 -11.776,0 -21.3334,-7.1577 -21.3334,-16.0003 0,-8.8427 9.5574,-16 21.3334,-16 V 53.376 C 19.5627,53.5893 0.885345,70.176 0.885345,90.6667 0.885345,111.296 19.7867,128 43.104,128 62.88,128 78.8053,116.853 84.7147,100.597 87.6693,92.5013 79.712,87.5413 73.536,88.224 Z"
fill="url(#paint4_linear_5_50)"
id="path11"
style="fill:url(#paint4_linear_5_50)" />
<path
d="m 214,225.771 c -88.504,0 -160.2439,-2.125 -160.2439,60.699 0,62.796 71.7399,77.086 160.2439,77.086 88.504,0 160.244,-14.29 160.244,-77.086 0,-62.815 -71.74,-60.699 -160.244,-60.699 z"
fill="#d99e82"
id="path12" />
<path
d="m 369.55,230.54 c 0,0 -77.624,-9.293 -155.55,-9.69 -77.926,0.397 -155.55,9.69 -155.55,9.69 -7.6783,61.143 56.072,86.332 155.55,86.332 99.478,0 163.228,-25.189 155.55,-86.332 z"
fill="#662113"
id="path13" />
<path
d="m 364.034,206.098 -300.8523,6.101 c -10.3889,0 -19.0873,21.052 -8.0656,26.558 82.2419,25.575 148.3529,51.453 148.3529,51.453 9.086,5.024 12.155,5.043 21.25,0.028 0,0 91.29,-36.531 149.931,-51.878 8.321,-2.172 -0.236,-32.262 -10.616,-32.262 z"
fill="#ffcc4d"
id="path14" />
<path
d="m 371.958,206.891 c -17.944,-16.537 -16.905,-7.735 -30.656,-11.617 -5.223,-1.473 -42.595,-49.781 -127.774,-49.781 h -0.189 c -85.18,0 -122.5512,48.308 -127.774,49.781 -13.7511,3.882 -12.7122,-4.92 -30.6567,11.617 -8.2355,7.593 -10.4644,11.541 -1.7755,13.506 13.09,2.956 11.9,10.88 21.2783,13.637 11.3522,3.334 16.0178,-2.757 34.3209,-0.264 15.612,2.125 16.632,22.374 32.385,22.374 15.754,0 15.754,-7.556 31.497,-7.556 15.744,0 25.057,20.268 40.81,20.268 15.753,0 25.056,-20.268 40.809,-20.268 15.754,0 15.754,7.556 31.498,7.556 15.753,0 16.773,-20.249 32.385,-22.374 18.303,-2.484 22.978,3.598 34.321,0.264 9.378,-2.757 8.188,-10.672 21.278,-13.637 8.708,-1.955 6.488,-5.913 -1.757,-13.506 z"
fill="#77b255"
id="path15" />
<path
d="m 365.838,189.022 c 0,28.182 -67.981,41.49 -151.838,41.49 -83.857,0 -151.8383,-13.308 -151.8383,-41.49 0,-51.028 9.1233,-51.028 151.8383,-51.028 142.715,0 151.838,0.009 151.838,51.028 z"
fill="#dd2e44"
id="path16" />
<path
d="m 214,37.9489 c -88.504,0 -160.2439,41.4705 -160.2439,104.2851 0,57.848 71.7399,60.209 160.2439,60.209 88.504,0 160.244,-2.361 160.244,-60.209 C 374.244,79.41 302.504,37.9489 214,37.9489 Z"
fill="#d99e82"
id="path17" />
<path
d="m 145.849,67.8972 c -4.703,-3.0128 -10.946,-1.6339 -13.95,3.0695 -3.003,4.7033 -1.633,10.9555 3.07,13.9494 4.703,3.0128 16.622,5.2606 19.635,0.5572 3.003,-4.7033 -4.052,-14.5727 -8.755,-17.5761 z m 91.932,-9.775 c -5.308,1.7189 -14.629,9.5011 -12.901,14.8089 1.728,5.3078 13.827,6.12 19.134,4.4011 5.308,-1.7189 8.208,-7.4233 6.479,-12.7311 -1.719,-5.2983 -7.423,-8.2072 -12.712,-6.4789 z m 103.03,66.4418 c -4.269,-3.589 -14.97,2.125 -18.568,6.394 -3.589,4.278 -3.032,10.644 1.237,14.233 4.269,3.588 10.644,3.031 14.233,-1.238 3.598,-4.278 7.376,-15.8 3.098,-19.389 z M 306.404,77.3417 c -4.703,-3.0034 -10.946,-1.6245 -13.958,3.0789 -3.004,4.7033 -1.625,10.9461 3.078,13.9494 4.704,3.0128 16.623,5.2606 19.626,0.5572 3.013,-4.7128 -4.042,-14.5822 -8.746,-17.5855 z M 164.738,143.453 c -4.704,-3.004 -10.946,-1.625 -13.959,3.079 -3.003,4.694 -1.625,10.946 3.079,13.94 4.703,3.012 16.622,5.27 19.625,0.557 3.013,-4.703 -4.042,-14.573 -8.745,-17.576 z m 28.768,-45.4091 c -3.174,4.5901 -5.856,16.4241 -1.257,19.5971 4.59,3.173 14.705,-3.532 17.879,-8.122 3.173,-4.59 2.011,-10.8801 -2.579,-14.0534 -4.58,-3.1734 -10.88,-2.0117 -14.043,2.5783 z m 75.121,45.4091 c -4.704,-3.004 -10.946,-1.625 -13.959,3.079 -3.004,4.694 -1.625,10.955 3.079,13.94 4.703,3.012 16.622,5.27 19.625,0.557 3.013,-4.703 -4.042,-14.573 -8.745,-17.576 z M 90.7311,106.742 c -3.7211,4.165 -7.8672,15.565 -3.7022,19.286 4.1461,3.721 15.0261,-1.644 18.7471,-5.809 3.731,-4.155 3.372,-10.54 -0.784,-14.27 -4.146,-3.721 -10.5398,-3.362 -14.2609,0.793 z"
fill="#ffe8b6"
id="path18" />
</g>
<path
d="m 281.58883,281.41119 c 0,14.10803 -11.43829,25.5463 -25.54573,25.5463 H 134.69889 c -14.10786,0 -25.54614,-11.43827 -25.54614,-25.5463 V 140.90797 c 0,-14.10803 11.43828,-25.54629 25.54614,-25.54629 H 256.0431 c 14.10744,0 25.54573,11.43826 25.54573,25.54629 z"
fill="#3b88c3"
id="path19"
style="stroke-width:0.598737" />
<path
d="m 268.81596,281.41119 c 0,14.10803 -11.43829,25.5463 -25.54631,25.5463 H 134.69889 c -14.10786,0 -25.54614,-11.43827 -25.54614,-25.5463 V 153.68084 c 0,-14.10804 11.43828,-25.54614 25.54614,-25.54614 h 110.71064 c 14.10743,0 23.40643,9.29881 23.40643,23.40686 z"
fill="url(#paint5_linear_5_50)"
id="path20"
style="fill:url(#paint5_linear_5_50);stroke-width:0.598737" />
<path
d="m 134.69889,115.36168 c -10.78045,0 -11.05509,-12.27489 -6.38649,-17.562938 5.31356,-6.009763 13.57133,-7.9832 28.34335,-7.9832 h 9.97556 V 77.042507 h -17.36456 c -25.34831,0 -46.50048,15.96634 -46.50048,34.327563 v 170.04112 c 0,14.10803 11.43827,25.5463 25.54613,25.5463 h 12.77321 V 115.36168 Z"
fill="#226699"
id="path21"
style="stroke-width:0.598737" />
<defs
id="defs33">
<linearGradient
id="paint0_linear_5_50"
x1="213.333"
y1="21.3295"
x2="213.333"
y2="362.667"
gradientUnits="userSpaceOnUse">
<stop
stop-color="#CCD6DD"
id="stop21" />
<stop
offset="1"
stop-color="#CCD6DD"
stop-opacity="0"
id="stop22" />
</linearGradient>
<linearGradient
id="paint1_linear_5_50"
x1="43.118"
y1="309.376"
x2="43.118"
y2="384"
gradientUnits="userSpaceOnUse">
<stop
stop-color="#66757F"
id="stop23" />
<stop
offset="1"
stop-color="#50585C"
id="stop24" />
<stop
offset="1"
stop-color="#50585C"
id="stop25" />
</linearGradient>
<linearGradient
id="paint2_linear_5_50"
x1="43.118"
y1="224.043"
x2="43.118"
y2="298.667"
gradientUnits="userSpaceOnUse">
<stop
stop-color="#66757F"
id="stop26" />
<stop
offset="1"
stop-color="#50585C"
id="stop27" />
</linearGradient>
<linearGradient
id="paint3_linear_5_50"
x1="43.118"
y1="138.709"
x2="43.118"
y2="213.333"
gradientUnits="userSpaceOnUse">
<stop
stop-color="#66757F"
id="stop28" />
<stop
offset="1"
stop-color="#50585C"
id="stop29" />
</linearGradient>
<linearGradient
id="paint4_linear_5_50"
x1="43.118"
y1="53.376"
x2="43.118"
y2="128"
gradientUnits="userSpaceOnUse">
<stop
stop-color="#66757F"
id="stop30" />
<stop
offset="1"
stop-color="#50585C"
id="stop31" />
</linearGradient>
<linearGradient
id="paint5_linear_5_50"
x1="186.667"
y1="85.3333"
x2="186.667"
y2="384"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.59873694,0,0,0.59873694,77.220137,77.042507)">
<stop
stop-color="#55ACEE"
id="stop32" />
<stop
offset="1"
stop-color="#55ACEE"
stop-opacity="0"
id="stop33" />
</linearGradient>
<clipPath
id="clip0_5_50">
<rect
width="384"
height="384"
fill="white"
id="rect33" />
</clipPath>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -1,5 +1,7 @@
#include <webkit2/webkit2.h>
#include <gtk/gtk.h>
#include <unistd.h>
#include <libgen.h>
static void cookie_changed_cb(WebKitCookieManager *cookie_manager, GParamSpec *pspec, gpointer user_data) {
// Handle cookie changes here
@ -18,16 +20,24 @@ int main(int argc, char *argv[]) {
// Create a web view widget
WebKitWebView *webview = WEBKIT_WEB_VIEW(webkit_web_view_new());
// Load a web page
const char *filename = "/app/";
if (access(filename, F_OK) != -1) {
printf("Flatpak found!\n");
webkit_web_view_load_uri(webview, "file:/\/\/app/share/pageburger/index.html");
} else {
printf("Flatpak not found, loading regular\n");
webkit_web_view_load_uri(webview, "file:/\/\/usr/share/pageburger/index.html");
// Get the path of the executable
char exe_path[1024];
ssize_t len = readlink("/proc/self/exe", exe_path, sizeof(exe_path)-1);
if (len == -1) {
perror("readlink");
return EXIT_FAILURE;
}
exe_path[len] = '\0';
// Get the directory containing the executable
char *exe_dir = dirname(exe_path);
// Construct the path to the website directory
char website_path[1024];
snprintf(website_path, sizeof(website_path), "file:/\/%s/website/app/index.html", exe_dir);
// Load the URI
webkit_web_view_load_uri(webview, website_path);
// Add the web view to the window
gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(webview));

View File

@ -1,44 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Burgernotes</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="./static/css/style.css" />
<meta content="Burgernotes" property="og:title" />
<meta content="A simple note-taking app!" property="og:description" />
</head>
<body>
<div class="mainDiv">
<div class="startDiv">
<h1 class="w300">Burgernotes</h1>
<p>A simple note-taking service!</p>
<br>
<a href="./app/index.html">Open in your browser</a>
<a href="./static/burgernotes.mobileconfig" style="margin-top: 5px;">Download for iOS</a>
<a style="padding: 0; padding-bottom: 0; margin-top: 5px; background-color: rgba(0, 0, 0, 0);" href="https://flathub.org/apps/org.hectabit.burgernotes">
<img class="flathubLogo" style="height: 55px;"src="./static/svg/flathublight.svg">
</a>
</div>
<br>
<div class="feature green">
<h7 class="w300">Secure</h7>
<p2>All your notes are fully end-to-end encrypted. Only you can read your notes, not anyone else.</p2>
</div>
<div class="feature yellow">
<h7 class="w300">Always up-to-date</h7>
<p2>Your notes seamlessly sync across your devices.</p2>
</div>
</div>
<div class="links">
<a href="https://centrifuge.hectabit.org/hectabit/burgernotes">Source code</a>
<a href="./privacy/index.html">Privacy policy</a>
</div>
</body>
</html>

View File

@ -20,6 +20,7 @@
<button id="signupButton">Next</button>
<button id="backButton" class="hidden">Back</button><br><br>
<p>Don't have an account? If so, <a href="../signup/index.html">Create one here!</a></p>
<a href="../privacy/index.html">Privacy &amp; Terms</a>
</div>
<script type="text/javascript" src="../static/js/login.js"></script>

View File

@ -11,5 +11,5 @@ Logging out..
localStorage.removeItem("DONOTSHARE-secretkey")
localStorage.removeItem("DONOTSHARE-password")
localStorage.removeItem("CACHE-username")
window.location.replace("../index.html")
window.location.replace("../login/index.html")
</script>

View File

@ -2,7 +2,7 @@
<html>
<head>
<title>Burgernotes Privacy Policy</title>
<title>Burgernotes Privacy &amp; Terms</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
@ -10,9 +10,9 @@
</head>
<body>
<h1 class="w300">Burgernotes Privacy Policy</h1>
<h1 class="w300">Burgernotes Privacy Policy &amp; Terms & Conditions</h1>
<h2 class="w300">Preamble</h2>
<p><i>Please note that I am not a lawyer, please don't expect too much of this policy <3</i></p>
<p><i>Please note that I am not a lawyer, please don't expect too much of this policy :3</i></p>
<p>Welcome to the Burgernotes privacy policy! Burgernotes is <a
href="https://centrifuge.hectabit.org/hectabit/burgernotes">free & open source</a> software licensed under <a
href="https://www.gnu.org/licenses/agpl-3.0.en.html">GNU AGPL-3.0</a>.</p>
@ -68,6 +68,8 @@
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.</p>
<br>
<button onclick="history.back()" style="padding: 15px 20px;margin-right: auto;color: white;text-decoration: none;background-color: var(--theme-color);border-radius: 8px;border: medium;font-size: 15px;">Take me back where I was!</button>
<br><br>
</body>

View File

@ -21,7 +21,8 @@
<button id="signupButton">Signup</button><br><br>
<p>Please note that it's impossible to reset your password, do not forget it!</p>
<p>Already have an account? If so, <a href="../login/index.html">Login</a> instead!</p>
<a href="../privacy/index.html">Privacy &amp; Terms</a>
</div>
<script type="text/javascript" src="../static/js/signup.js"></script>
</body>

View File

@ -170,7 +170,7 @@ body {
filter: invert(var(--invertdm));
padding-left: 17.5px;
padding-right: 17.5px;
background-image: url("/static/svg/delete.svg");
background-image: url("../static/svg/delete.svg");
background-position: center;
background-repeat: no-repeat;
background-size: 55%;

View File

@ -118,7 +118,7 @@ signupButton.addEventListener("click", (event) => {
newpass: "null"
}),
headers: {
"Content-type": "application/json; charset=UTF-8"
"Content-Type": "application/json; charset=UTF-8"
}
})
.then((response) => response)
@ -142,7 +142,7 @@ signupButton.addEventListener("click", (event) => {
newpass: await hashpass(password)
}),
headers: {
"Content-type": "application/json; charset=UTF-8"
"Content-Type": "application/json; charset=UTF-8"
}
})
.then((response) => response)

View File

@ -203,7 +203,7 @@ function updateUserInfo() {
secretKey: secretkey
}),
headers: {
"Content-type": "application/json; charset=UTF-8"
"Content-Type": "application/json; charset=UTF-8"
}
})
.then((response) => response)
@ -214,7 +214,7 @@ function updateUserInfo() {
closeErrorButton.classList.add("hidden")
usernameBox.innerText = ""
setTimeout(function () {
window.location.replace("https://notes.hectabit.org/api/logout")
window.location.replace("../logout/index.html")
}, 2500);
} else {
let responseData = await response.json()
@ -236,7 +236,7 @@ usernameBox.addEventListener("click", (event) => {
updateUserInfo()
});
logOutButton.addEventListener("click", (event) => {
window.location.replace("https://notes.hectabit.org/api/logout")
window.location.replace("../logout/index.html")
});
exitThing.addEventListener("click", (event) => {
optionsDiv.classList.add("hidden")
@ -250,13 +250,13 @@ deleteMyAccountButton.addEventListener("click", (event) => {
secretKey: secretkey
}),
headers: {
"Content-type": "application/json; charset=UTF-8"
"Content-Type": "application/json; charset=UTF-8"
}
})
.then((response) => response)
.then((response) => {
if (response.status == 200) {
window.location.href = "https://notes.hectabit.org/api/logout"
window.location.href = "../logout/index.html"
} else {
displayError("Failed to delete account (HTTP error code " + response.status + ")")
}
@ -273,7 +273,7 @@ sessionManagerButton.addEventListener("click", (event) => {
secretKey: secretkey
}),
headers: {
"Content-type": "application/json; charset=UTF-8"
"Content-Type": "application/json; charset=UTF-8"
}
})
.then((response) => response)
@ -295,15 +295,15 @@ sessionManagerButton.addEventListener("click", (event) => {
sessionText.title = responseData[i]["device"]
sessionRemoveButton.innerText = "x"
sessionImage.src = "../static/svg/device_other.svg"
sessionImage.src = "/static/svg/device_other.svg"
ua = responseData[i]["device"]
if (ua.includes("NT") || ua.includes("Linux")) {
sessionImage.src = "../static/svg/device_computer.svg"
sessionImage.src = "/static/svg/device_computer.svg"
}
if (ua.includes("iPhone" || ua.includes("Android") || ua.include ("iPod"))) {
sessionImage.src = "../static/svg/device_smartphone.svg"
sessionImage.src = "/static/svg/device_smartphone.svg"
}
sessionRemoveButton.addEventListener("click", (event) => {
@ -314,13 +314,13 @@ sessionManagerButton.addEventListener("click", (event) => {
sessionId: responseData[i]["id"]
}),
headers: {
"Content-type": "application/json; charset=UTF-8"
"Content-Type": "application/json; charset=UTF-8"
}
})
.then((response) => response)
.then((response) => {
if (responseData[i]["thisSession"] == true) {
window.location.replace("https://notes.hectabit.org/api/logout")
window.location.replace("../logout/index.html")
}
});
sessionElement.remove()
@ -365,7 +365,7 @@ function selectNote(nameithink) {
noteId: nameithink,
}),
headers: {
"Content-type": "application/json; charset=UTF-8"
"Content-Type": "application/json; charset=UTF-8"
}
})
.catch((error) => {
@ -404,7 +404,7 @@ function selectNote(nameithink) {
content: encryptedText,
}),
headers: {
"Content-type": "application/json; charset=UTF-8"
"Content-Type": "application/json; charset=UTF-8"
}
})
.then((response) => response)
@ -431,7 +431,7 @@ function updateNotes() {
secretKey: secretkey
}),
headers: {
"Content-type": "application/json; charset=UTF-8"
"Content-Type": "application/json; charset=UTF-8"
}
})
.then((response) => response)
@ -466,7 +466,7 @@ function updateNotes() {
noteId: responseData[i]["id"]
}),
headers: {
"Content-type": "application/json; charset=UTF-8"
"Content-Type": "application/json; charset=UTF-8"
}
})
.then((response) => response)
@ -506,7 +506,7 @@ newNote.addEventListener("click", (event) => {
noteName: encryptedName,
}),
headers: {
"Content-type": "application/json; charset=UTF-8"
"Content-Type": "application/json; charset=UTF-8"
}
})
.catch((error) => {
@ -541,7 +541,7 @@ function exportNotes() {
secretKey: secretkey
}),
headers: {
"Content-type": "application/json; charset=UTF-8"
"Content-Type": "application/json; charset=UTF-8"
}
})
.then((response) => response)
@ -601,7 +601,7 @@ removeBox.addEventListener("click", (event) => {
noteId: selectedNote
}),
headers: {
"Content-type": "application/json; charset=UTF-8"
"Content-Type": "application/json; charset=UTF-8"
}
})
.then((response) => response)

View File

@ -68,7 +68,7 @@ signupButton.addEventListener("click", (event) => {
password: await hashpass(password)
}),
headers: {
"Content-type": "application/json; charset=UTF-8"
"Content-Type": "application/json; charset=UTF-8"
}
})
.then((response) => response)