From f99c568576ca09338e3b4780e0a6fc869d357d83 Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Thu, 26 Sep 2024 13:49:39 +0200 Subject: [PATCH] init --- .gitignore | 2 + Makefile | 32 +++++++ Readme.md | 29 ++++++ package-lock.json | 27 ++++++ package.json | 7 ++ src/index.html | 227 ++++++++++++++++++++++++++++++++++++++++++++++ src/logo.png | Bin 0 -> 12305 bytes 7 files changed, 324 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 Readme.md create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 src/index.html create mode 100644 src/logo.png diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3b9923c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +dist +node_modules/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a39427f --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +.PHONY: dev-deploy pretty build build-src build-png build-assets default-target clean + + + +default-target: build + +clean: + rm -rf dist node_modules + +dev-deploy: build + rsync -rv dist/* shnbk.de:domains/3dcalc.shnbk.de/htdocs/ + +pretty: + prettier -w src/**/*.html **/*.md + +dist: + mkdir dist + +build: build-assets build-png build-src + +build-src: dist + minify -ar src/ -o dist + +build-png: dist + pngcrush -q -d dist src/*.png + +build-assets: dist node_modules + minify node_modules/bulma/css/bulma.min.css -o dist/bulma.min.css + +node_modules: package.json + npm i + touch node_modules diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..d291fb8 --- /dev/null +++ b/Readme.md @@ -0,0 +1,29 @@ +# Filament 3D Coast Calculator + +Hiermit werden Druckkosten beim C3re berechnet. + +Die Berechnung Basiert auf 4 Festen werten und 2-3 Userwerten. + +Der user gibt ein (Werte aus dem Slicer): + +- Druckdauer +- Ob er Pool-Filament nutzen will und wenn ja: + - Wie viel in g + +Mit diesen Angaben werden die Kosten berechnet. + +Die Fixwerte sind in der index.html relativ weit oben angegeben. + +Berechnet wird, wenn kein Filament genutzt wird + +``` + Druckdauer * `pricePerPrintingHourInEuro` +``` + +Mit Pool-Filament wird berechnet: + +``` + Druckdauer * `pricePerPrintingHourInEuro` + `pricePerGrammPoolFilamentInEuro` * `poolFilamentInGramm` +``` + +In beiden Fällen wird dann auf die nächsten vollen wert von `roundUpStep` aufgerundet und dann wird noch identifierAddition dazu addiert. diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..cfe1c92 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,27 @@ +{ + "name": "filament_3d_coast_calculater", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "filament_3d_coast_calculater", + "version": "1.0.0", + "dependencies": { + "bulma": "^1.0.2" + } + }, + "node_modules/bulma": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bulma/-/bulma-1.0.2.tgz", + "integrity": "sha512-D7GnDuF6seb6HkcnRMM9E739QpEY9chDzzeFrHMyEns/EXyDJuQ0XA0KxbBl/B2NTsKSoDomW61jFGFaAxhK5A==" + } + }, + "dependencies": { + "bulma": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bulma/-/bulma-1.0.2.tgz", + "integrity": "sha512-D7GnDuF6seb6HkcnRMM9E739QpEY9chDzzeFrHMyEns/EXyDJuQ0XA0KxbBl/B2NTsKSoDomW61jFGFaAxhK5A==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..fc4d9c9 --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "name": "filament_3d_coast_calculater", + "version": "1.0.0", + "dependencies": { + "bulma": "^1.0.2" + } +} diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..3589f65 --- /dev/null +++ b/src/index.html @@ -0,0 +1,227 @@ + + + + 3D-Druck Kostenrechner + + + + + +
+ +
+
+

3D-Druck Filamentkostenrechner

+ +
+
+ +
+
+ Wo kommt dein Filament her? + + + +
+
+
+
+ +
+
+ + + + + +
+
+ +
+
+ +
+
+ + +
+
+
+
+
+ +
+
+ +
+
+

Wie entsteht der Preis?

+
    +
  • + Pro Druckstunde fallen ... € Kosten + für Strom und Verschleiß an. +
  • +
  • + Pool-Filament wird mit ... € + pro kg berechnet. +
  • + +
  • + Beide Kosten werden addiert und auf die nächsten + ... € aufgerundet. + (Zusätzlich wird € addiert damit wir + auf der Abrechnung den Verwendungszweck erkennen können.) +
  • +
+
+
+
+ + + + diff --git a/src/logo.png b/src/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..8cc0dd993e100a462959592cd1e08348c38042cf GIT binary patch literal 12305 zcmeHtc|4SD`}cXxX3to%L>WVpj2Vn9Sw=`I(uyKx%wV#N7(!_-2`xfWDV4dqCGAqS zC{t1@F@-24cMC!&JDGVex|iA6*VA_r!Xr2V><|`#8yn6duwvK&0K~iw zb#IfarbvDdJecOUU=Jm2DD$@cBl4WGRp-urL`S|%NSGe7?J%S16Us}@o!3n)(2rWZ zC1Uuf@#Duz%FSEn??HJTAQj16jd|deyF%f{*5l+Ap>p(c8H49{ZBoxEq#t-FxmAs= zW?T-_h0|Lv23>9;8}7RO>qLV6qg7VhV|RRsJ+Zy5t!RXP?#z*+#y7`-bsE^Y`oXIO z#1>QM4|S1>TWhOqTm`C8E4DZ{@35!_07_&#IJmnwIQ-!c;>GFsBQ`6mX==&u@|zEC zv}(0~pzRP+#(!yf+~+7TVT zo_j>GYPB?pQTd@PW$f~6n8$CS_Bz=@V=OI*{r8W>)AnwiX2x~{aA^BUI`|6c8Kt-)8zuVpT(x_ds}e*aaY ztLQ1JA@yW=pXQEKPs5!zUesJ+Y=5xf!H!Lhi+yW%U5RLaf2FzSO8i>U{gvx{x4pNz zs*raBc3O%5g`Z}yz3>R%XHm`al$R#>$@)YD8yp7%Zch&~T*g0I;@;38(u9v$zBXE07&#Lma56 zA`;k48={AqE5$Y3ffdAF85hCY5a+hhKQ7qcl1a3)m9~ztLI6TpTsk2pG$bt2D#nI5 zi))39XQs(S!Ym6n*oNro>P~RrM6d`{BdQUFHX+(d6Rabc0aoiBSNslv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