mirror of
https://github.com/Lissy93/personal-security-checklist.git
synced 2024-12-22 20:45:06 +07:00
Update terminology, from reccomended to essential
This commit is contained in:
parent
2899f49625
commit
454d2c27bf
@ -23,7 +23,7 @@ export default component$((props: { section: Section }) => {
|
||||
const originalFilters = {
|
||||
show: 'all', // 'all', 'remaining', 'completed'
|
||||
levels: {
|
||||
recommended: true,
|
||||
essential: true,
|
||||
optional: true,
|
||||
advanced: true,
|
||||
},
|
||||
@ -33,7 +33,7 @@ export default component$((props: { section: Section }) => {
|
||||
|
||||
const getBadgeClass = (priority: Priority, precedeClass: string = '') => {
|
||||
switch (priority.toLocaleLowerCase()) {
|
||||
case 'recommended':
|
||||
case 'essential':
|
||||
return `${precedeClass}success`;
|
||||
case 'optional':
|
||||
return `${precedeClass}warning`;
|
||||
@ -87,7 +87,7 @@ export default component$((props: { section: Section }) => {
|
||||
case 'advice':
|
||||
return item.point;
|
||||
case 'level':
|
||||
return ['recommended', 'optional', 'advanced'].indexOf(item.priority.toLowerCase());
|
||||
return ['essential', 'optional', 'advanced'].indexOf(item.priority.toLowerCase());
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
@ -198,8 +198,8 @@ export default component$((props: { section: Section }) => {
|
||||
<span class="text-sm">Basic</span>
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={filterState.levels.recommended}
|
||||
onChange$={() => (filterState.levels.recommended = !filterState.levels.recommended)}
|
||||
checked={filterState.levels.essential}
|
||||
onChange$={() => (filterState.levels.essential = !filterState.levels.essential)}
|
||||
class="checkbox checkbox-sm checked:checkbox-success"
|
||||
/>
|
||||
</label>
|
||||
|
@ -151,7 +151,7 @@ export default component$(() => {
|
||||
totalProgress.value = progress;
|
||||
})
|
||||
|
||||
makeDataAndDrawChart('recommended', 'hsl(var(--su, 158 64% 52%))');
|
||||
makeDataAndDrawChart('essential', 'hsl(var(--su, 158 64% 52%))');
|
||||
makeDataAndDrawChart('optional', 'hsl(var(--wa, 43 96% 56%))');
|
||||
makeDataAndDrawChart('advanced', 'hsl(var(--er, 0 91% 71%))');
|
||||
}));
|
||||
@ -212,7 +212,7 @@ export default component$(() => {
|
||||
return Promise.all([
|
||||
buildDataForPriority('advanced', 'hsl(0 91% 71%/75%)'),
|
||||
buildDataForPriority('optional', 'hsl(43 96% 56%/75%)'),
|
||||
buildDataForPriority('recommended', 'hsl(158 64% 52%/75%)'),
|
||||
buildDataForPriority('essential', 'hsl(158 64% 52%/75%)'),
|
||||
]).then(datasets => ({
|
||||
labels,
|
||||
datasets,
|
||||
@ -274,7 +274,7 @@ export default component$(() => {
|
||||
}));
|
||||
|
||||
const items = [
|
||||
{ id: 'recommended-container', label: 'Essential' },
|
||||
{ id: 'essential-container', label: 'Essential' },
|
||||
{ id: 'optional-container', label: 'Optional' },
|
||||
{ id: 'advanced-container', label: 'Advanced' },
|
||||
];
|
||||
|
@ -18,7 +18,7 @@ export interface Section {
|
||||
furtherResources?: Link[],
|
||||
}
|
||||
|
||||
export type Priority = 'recommended' | 'optional' | 'advanced';
|
||||
export type Priority = 'essential' | 'optional' | 'advanced';
|
||||
|
||||
export interface Checklist {
|
||||
point: string,
|
||||
|
Loading…
Reference in New Issue
Block a user