Compare commits
3 Commits
e8b208accb
...
e89c4acf1c
| Author | SHA1 | Date | |
|---|---|---|---|
| e89c4acf1c | |||
| ac6f82af6c | |||
| 0be9eafd10 |
11216
package-lock.json
generated
Normal file
11216
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
42
package.json
Normal file
42
package.json
Normal file
@ -0,0 +1,42 @@
|
||||
{
|
||||
"name": "@invoiceninja/invoiceninja",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite --host 0.0.0.0",
|
||||
"build": "vite build",
|
||||
"production": "vite build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/compat-data": "7.15.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
||||
"@tailwindcss/aspect-ratio": "^0.4.2",
|
||||
"@tailwindcss/forms": "^0.5.7",
|
||||
"@tailwindcss/line-clamp": "^0.4.4",
|
||||
"@tailwindcss/typography": "^0.5.10",
|
||||
"autoprefixer": "^10.4.18",
|
||||
"laravel-mix-purgecss": "^6.0.0",
|
||||
"laravel-vite-plugin": "^0.8.0",
|
||||
"postcss": "^8.4.35",
|
||||
"tailwindcss": "^3.4.1",
|
||||
"vite": "^4.4.9",
|
||||
"vite-plugin-static-copy": "^0.17.0",
|
||||
"vue-template-compiler": "^2.6.14"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.25",
|
||||
"card-js": "^1.0.13",
|
||||
"card-validator": "^8.1.1",
|
||||
"clipboard": "^2.0.10",
|
||||
"cross-env": "^7.0.3",
|
||||
"jsignature": "^2.1.3",
|
||||
"json-formatter-js": "^2.3.4",
|
||||
"laravel-mix": "^6.0.34",
|
||||
"linkify-urls": "^4.0.0",
|
||||
"lodash": "^4.17.21",
|
||||
"resolve-url-loader": "^4.0.0",
|
||||
"sass": "^1.43.4",
|
||||
"sass-loader": "^12.3.0",
|
||||
"signature_pad": "^5.0.2"
|
||||
},
|
||||
"type": "module"
|
||||
}
|
||||
25
react-ui.nix
Normal file
25
react-ui.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ lib, fetchzip, buildNpmPackage, typescript }:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "invoiceninja-react-ui";
|
||||
|
||||
version = "11.12.2024.1";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/invoiceninja/ui/archive/refs/tags/11.12.2024.1.tar.gz";
|
||||
hash = "sha256-6yAX+NM3ryWmn1Cww3vtsyjdyzzNtKxmiDMOTwu9JXc=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-uqa/fzUlchMVzHiZuC7BXMVS/2rj0ukREecg4iDULWs=";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share
|
||||
cp -a dist $out/share/${pname}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
|
||||
|
||||
38
react.nix
Normal file
38
react.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ lib
|
||||
, buildNpmPackage
|
||||
, importNpmLock
|
||||
, fetchFromGitHub
|
||||
, dataDir ? "/var/lib/invoiceninja"
|
||||
, runtimeDir ? "/run/invoiceninja"
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "invoiceninja-react";
|
||||
version = "5.11.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "invoiceninja";
|
||||
repo = "invoiceninja";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-wfKYe31ZulXJfbY5naFipXUhP0W6KUYbaoMuiV8DTas=";
|
||||
};
|
||||
|
||||
npmDeps = importNpmLock {
|
||||
package = lib.importJSON ./package.json;
|
||||
packageLock = lib.importJSON ./package-lock.json;
|
||||
};
|
||||
|
||||
npmConfigHook = importNpmLock.npmConfigHook;
|
||||
|
||||
meta = {
|
||||
description = "Open-source, self-hosted invoicing application";
|
||||
homepage = "https://www.invoiceninja.com/";
|
||||
license = with lib.licenses; {
|
||||
fullName = "Elastic License 2.0";
|
||||
shortName = "Elastic-2.0";
|
||||
free = false;
|
||||
};
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user