From 269d48c900852210fac1da109bee54f8e652b9b8 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 17 May 2020 14:44:33 -0500 Subject: [PATCH] Add backend feature checks, fixes #8 --- app/gabsocial/utils/__tests__/features-test.js | Bin 0 -> 2807 bytes app/gabsocial/utils/features.js | Bin 0 -> 702 bytes package.json | 10 +++++++--- yarn.lock | 5 +++++ 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 app/gabsocial/utils/__tests__/features-test.js create mode 100644 app/gabsocial/utils/features.js diff --git a/app/gabsocial/utils/__tests__/features-test.js b/app/gabsocial/utils/__tests__/features-test.js new file mode 100644 index 0000000000000000000000000000000000000000..7f2960831b949abac185e5e6745c895e0e40b04d GIT binary patch literal 2807 zcmds&O^?$s5Qgvl6?03XZA>@)Siw>bNN_+xLafByO{c*qiG%IzBBA~7*omDuS+vdW zwj9WzRqJtP-glm{Sy6GJ;P(umqC(;~6q50Bu778!J|b1MKsle?!$I%@0zzIL?4QB) zjM?4I;-?#MQLHFxMRz&snAsj>D%cLgz|RoOA&g-Au1U>Q7~C=S9lqqK(@?l=%K)ha zE3-i?K#r;l*g}wyE0RE%@}i=O>7>`)YZ9^`>v$7qbh*LZ8fjeV1XN1J_q@E=<87oX z1pVNz3R4yO6^6EmC?bk~_*v6DG&Y$>@`Jjg0^dMjD-Mif=CPaf%JJmgrnYwLeX~_d zva9!zsnC4tug<8?wAJA9O>%0f?O422u*=*P-z#q4@0=Km@>hFNjj$dO54u6u`v@%f z5B3#ls^lP|HHS%1qDDAy;Ztxi3T+``rBt*`5w;fKuEE1TzKAbpM=RMNV)%7Kq*Hs6 zLswDLa}#U1bm7EPZ?Jrip^22b#;F6>mXPc^)q=$t77Y;#Cr7%l&JbZYaij zz%b`k)Uk3d6B?yQUFgyE&K}nhXT1l58!kPOORa7dG-GHsoVtnQ`n!SextDd8p;Y>C zKE}P1se8R5%gN|_YMYIxQtK7|6l6OUhFPs+DzzgS$@yfAo7UU_=7iRV(1X#NTE4wT zCLTclaOfVkajgF@&?ep_nYoP^)d1><$GZ{&%M@0+E|ZFP-l- z`%M_a0}^V2mC~PBu3>|Ub`~9w0d2~4Mwuy9o_~R57%gCq1(xKztk@b$;IOE8ys@SL zzy0we&%;B5vV|i^ksf>B7&0EIQX|Co@a;hz!<-6Y*edJr6|Lh;(bFWWh0huF)DMD) zB^G(fvQY!LU7Dh+_jEI;q%#}ZE6etA4E~dHWY#Q%!Jyk!ri7xB+7w$wUD^oziM*3j zKNzt+0M)Pkm)%s3<+!)Q!hB>es5D*ie9n=}Q-3$?-rVeVGW&@<{x17H?~QBhbbY@$ z5*L=@fuZnCERua9m%~8JXOM`tg>02$1U19}2ssRrAei5Tb=S4LP^8~k-q=VypcY-o om2-6c&sx=DvV`OD>=13ioxCSa8&VUqxLvlCiv#t<7HmuS1zU&XLI3~& literal 0 HcmV?d00001 diff --git a/package.json b/package.json index bbec290c97..a4b5bbd343 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,13 @@ "description": "Soapbox frontend for Pleroma.", "homepage": "https://soapbox.pub/", "repository": { - "type" : "git", - "url" : "https://gitlab.com/soapbox-pub/soapbox-fe.git" + "type": "git", + "url": "https://gitlab.com/soapbox-pub/soapbox-fe.git" }, - "keywords": ["fediverse", "pleroma"], + "keywords": [ + "fediverse", + "pleroma" + ], "bugs": { "url": "https://gitlab.com/soapbox-pub/soapbox-fe/-/issues" }, @@ -125,6 +128,7 @@ "rimraf": "^3.0.0", "sass": "^1.20.3", "sass-loader": "^8.0.0", + "semver": "^7.3.2", "stringz": "^2.0.0", "substring-trie": "^1.0.2", "throng": "^4.0.0", diff --git a/yarn.lock b/yarn.lock index 5054c8b876..6125a25663 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9388,6 +9388,11 @@ semver@^6.1.1: resolved "https://registry.yarnpkg.com/semver/-/semver-6.1.1.tgz#53f53da9b30b2103cd4f15eab3a18ecbcb210c9b" integrity sha512-rWYq2e5iYW+fFe/oPPtYJxYgjBm8sC4rmoGdUOgBB7VnwKt6HrL793l2voH1UlsyYZpJ4g0wfjnTEO1s1NP2eQ== +semver@^7.3.2: + version "7.3.2" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938" + integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ== + send@0.17.1: version "0.17.1" resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8"