Skip to content

Commit

Permalink
Merge branch 'EddieHubCommunity:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
foss2cyber authored Nov 24, 2023
2 parents 23f7eb9 + e3767d0 commit 7ad5041
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 18 deletions.
22 changes: 11 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
## [2.89.6](https://github.com/EddieHubCommunity/BioDrop/compare/v2.89.5...v2.89.6) (2023-11-21)
## [2.90.1](https://github.com/EddieHubCommunity/BioDrop/compare/v2.90.0...v2.90.1) (2023-11-23)


### Bug Fixes

* profile sub domain ([#9811](https://github.com/EddieHubCommunity/BioDrop/issues/9811)) ([159e219](https://github.com/EddieHubCommunity/BioDrop/commit/159e21902bc7390c63a666db9d80fcb316210fd1))
* duplicate tags issue using set constructor ([#9820](https://github.com/EddieHubCommunity/BioDrop/issues/9820)) ([bde2fe9](https://github.com/EddieHubCommunity/BioDrop/commit/bde2fe9fb21535bddad9580679bb5dc77a6a5536))



## [2.89.5](https://github.com/EddieHubCommunity/BioDrop/compare/v2.89.4...v2.89.5) (2023-11-20)
# [2.90.0](https://github.com/EddieHubCommunity/BioDrop/compare/v2.89.6...v2.90.0) (2023-11-22)


### Bug Fixes
### Features

* reduce link name length to min 1 ([#9805](https://github.com/EddieHubCommunity/BioDrop/issues/9805)) ([53e906a](https://github.com/EddieHubCommunity/BioDrop/commit/53e906ae4df720c3cd0e3505fe9e3e1720c99a37))
* admin stats for custom domains ([#9816](https://github.com/EddieHubCommunity/BioDrop/issues/9816)) ([c808cff](https://github.com/EddieHubCommunity/BioDrop/commit/c808cff4622705df632777b8c3442fa75af96bab))



## [2.89.4](https://github.com/EddieHubCommunity/BioDrop/compare/v2.89.3...v2.89.4) (2023-11-19)
## [2.89.6](https://github.com/EddieHubCommunity/BioDrop/compare/v2.89.5...v2.89.6) (2023-11-21)


### Bug Fixes

* pricing premium text ([#9806](https://github.com/EddieHubCommunity/BioDrop/issues/9806)) ([bd90bc7](https://github.com/EddieHubCommunity/BioDrop/commit/bd90bc7e50e7795c2e7dfd3f3b06298b64f0aadb))
* profile sub domain ([#9811](https://github.com/EddieHubCommunity/BioDrop/issues/9811)) ([159e219](https://github.com/EddieHubCommunity/BioDrop/commit/159e21902bc7390c63a666db9d80fcb316210fd1))



## [2.89.3](https://github.com/EddieHubCommunity/BioDrop/compare/v2.89.2...v2.89.3) (2023-11-19)
## [2.89.5](https://github.com/EddieHubCommunity/BioDrop/compare/v2.89.4...v2.89.5) (2023-11-20)


### Bug Fixes

* resolve mobile keyboard fluctuation during search ([#9248](https://github.com/EddieHubCommunity/BioDrop/issues/9248)) ([999602b](https://github.com/EddieHubCommunity/BioDrop/commit/999602bae3a2b267a68fd2d8e55282bbfe979501))
* reduce link name length to min 1 ([#9805](https://github.com/EddieHubCommunity/BioDrop/issues/9805)) ([53e906a](https://github.com/EddieHubCommunity/BioDrop/commit/53e906ae4df720c3cd0e3505fe9e3e1720c99a37))



## [2.89.2](https://github.com/EddieHubCommunity/BioDrop/compare/v2.89.1...v2.89.2) (2023-11-18)
## [2.89.4](https://github.com/EddieHubCommunity/BioDrop/compare/v2.89.3...v2.89.4) (2023-11-19)


### Bug Fixes

* homepage video ([#9799](https://github.com/EddieHubCommunity/BioDrop/issues/9799)) ([c029503](https://github.com/EddieHubCommunity/BioDrop/commit/c02950376893a8c370be914fb40390b38634416f))
* pricing premium text ([#9806](https://github.com/EddieHubCommunity/BioDrop/issues/9806)) ([bd90bc7](https://github.com/EddieHubCommunity/BioDrop/commit/bd90bc7e50e7795c2e7dfd3f3b06298b64f0aadb))



2 changes: 1 addition & 1 deletion config/app.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.89.6",
"version": "2.90.1",
"alerts": [],
"layouts": [
"classic",
Expand Down
29 changes: 29 additions & 0 deletions data/Aishanya12.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "Aishanya Alankrit",
"bio": "A Web developer | an Artist ",
"tags": [
"JavaScript",
"React JS",
"CSS",
"HTML",
"SQL",
"Excel",
"C++"
],
"links": [
{
"group": "Socials primary",
"name" : "Linkdein",
"url": "https://www.linkedin.com/in/aishanya-alankrit-b7722616b/",
"icon": "FaLink"
},
{
"group": "Socials follow",
"name": "instagram: Follow me",
"url": "https://www.instagram.com/aishanyart/",
"icon": "FaInstagram",
"color": "#00ACEE"
}
]

}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "biodrop",
"version": "2.89.6",
"version": "2.90.1",
"private": false,
"homepage": "https://biodrop.io",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions pages/account/manage/event/[[...data]].js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export default function ManageEvent({ BASE_URL, event }) {
};

const handleTagAdd = (newTag) =>
setTags((prevState) => [...prevState, newTag]);
setTags((prevState) => [...new Set([...prevState, newTag])]);
const handleTagRemove = (tagToRemove) =>
setTags(tags.filter((tag) => tag !== tagToRemove));

Expand Down Expand Up @@ -343,7 +343,7 @@ export default function ManageEvent({ BASE_URL, event }) {
inputRef={tagInputRef}
/>
<p className="text-sm text-primary-medium-low dark:text-primary-low-high">
Separate tags with commas.
Separate tags with commas (tags cannot be duplicated).
</p>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions pages/account/manage/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default function Profile({ BASE_URL, profile, fileExists }) {
const { pronouns } = config;

const handleTagAdd = (newTag) => {
setTags((prevState) => [...prevState, newTag]);
setTags((prevState) => [...new Set([...prevState, newTag])]);
};

const handleTagRemove = (tagToRemove) => {
Expand Down Expand Up @@ -253,7 +253,7 @@ export default function Profile({ BASE_URL, profile, fileExists }) {
inputRef={tagInputRef}
/>
<p className="text-sm text-primary-medium-low dark:text-primary-low-high">
Separate tags with commas.
Separate tags with commas (tags cannot be duplicated).
</p>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions pages/admin/statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default function Statistics({ stats }) {
{ id: 4, name: "Profiles not enabled", value: stats.totalProfilesDisabled },
{ id: 5, name: "Premium Profiles", value: stats.totalPremiumProfiles },
{ id: 6, name: "Changelogs", value: stats.totalChangelogs },
{ id: 6, name: "Custom Domains", value: stats.totalCustomDomains },
];

return (
Expand Down
10 changes: 10 additions & 0 deletions pages/api/admin/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ export async function getStatsApi() {
logger.error(e, "failed to load totalChangelogs");
}

let totalCustomDomains = 0;
try {
totalCustomDomains = await Profile.countDocuments({
"settings.domain": { $exists: true, $ne: "" },
});
} catch (e) {
logger.error(e, "failed to load totalCustomDomains profiles");
}

return {
statusCode: 200,
stats: {
Expand All @@ -73,6 +82,7 @@ export async function getStatsApi() {
totalProfilesDisabled: totalProfilesDisabled || 0,
totalPremiumProfiles: totalPremiumProfiles || 0,
totalChangelogs: totalChangelogs || 0,
totalCustomDomains: totalCustomDomains || 0,
},
};
}

0 comments on commit 7ad5041

Please sign in to comment.