-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NAS-132330 / 25.04 / Update TrueNAS Brand (#11318)
* NAS-133354: QA iSCSI pages * NAS-132330: Update TrueNAS Brand * NAS-132330: Update TrueNAS Brand * NAS-132330: Update TrueNAS Brand * NAS-132330: Update TrueNAS Brand * NAS-132330: Update TrueNAS Brand * NAS-132330: Update TrueNAS Brand * NAS-132330: Update TrueNAS Brand * NAS-132330: Update TrueNAS Brand * NAS-132330: Update TrueNAS Brand * NAS-132330: Update TrueNAS Brand * NAS-132330: Update TrueNAS Brand * NAS-132330: Update TrueNAS Brand
- Loading branch information
1 parent
8506a0d
commit 921ef50
Showing
148 changed files
with
885 additions
and
531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
import { environment } from 'environments/environment'; | ||
import { ProductType } from 'app/enums/product-type.enum'; | ||
import { getCopyrightText } from 'app/helpers/copyright-text.helper'; | ||
|
||
const buildYear = environment.buildYear; | ||
|
||
describe('getCopyrightText', () => { | ||
it('should return the correct copyright text', () => { | ||
expect(getCopyrightText(false, 2024)).toBe('TrueNAS ® © 2024'); | ||
it('general: copyright text', () => { | ||
expect(getCopyrightText()).toBe(`TrueNAS ® © ${buildYear}`); | ||
}); | ||
|
||
it('community edition: copyright text', () => { | ||
expect(getCopyrightText(ProductType.CommunityEdition)).toBe(`TrueNAS Community Edition ® © ${buildYear}`); | ||
}); | ||
|
||
it('should return the correct enterprise copyright text', () => { | ||
expect(getCopyrightText(true, 2024)).toBe('TrueNAS ENTERPRISE ® © 2024'); | ||
it('enterprise: copyright text', () => { | ||
expect(getCopyrightText(ProductType.Enterprise)).toBe(`TrueNAS Enterprise ® © ${buildYear}`); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
export function getCopyrightText(isEnterprise: boolean, buildYear: number): string { | ||
if (isEnterprise) { | ||
return `TrueNAS ENTERPRISE ® © ${buildYear}`; | ||
import { environment } from 'environments/environment'; | ||
import { ProductType, productTypeLabels } from 'app/enums/product-type.enum'; | ||
|
||
export function getCopyrightText(productType?: ProductType): string { | ||
if (productType) { | ||
return `TrueNAS ${productTypeLabels.get(productType)} ® © ${environment.buildYear}`; | ||
} | ||
return `TrueNAS ® © ${buildYear}`; | ||
return `TrueNAS ® © ${environment.buildYear}`; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.