Skip to content

Commit

Permalink
Demo: rename the 'default' pagination example to 'basic' (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbasso authored Sep 14, 2023
1 parent b71fa6d commit 6ade3d7
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion angular/demo/src/app/samples/pagination/default.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {Component} from '@angular/core';
standalone: true,
imports: [AgnosUIAngularModule],
template: `
<h5>Default pagination:</h5>
<h5>Basic pagination:</h5>
<nav au-pagination [(page)]="page" [collectionSize]="60"></nav>
<h5>No direction links:</h5>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import Section from '$lib/layout/Section.svelte';
</script>

<Section label="Simple alert" id="default" level={2}>
<Section label="Basic alerts" id="default" level={2}>
<Sample title="Generic example" sample={sampleGeneric} height={627} />
</Section>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import Section from '$lib/layout/Section.svelte';
</script>

<Section label="Default pagination" id="default" level={2}>
<Section label="Basic paginations" id="default" level={2}>
<Sample title="Pagination example" sample={sampleDefault} height={419} />
</Section>

Expand Down
3 changes: 2 additions & 1 deletion e2e/htmlSnapshot.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type {Locator} from '@playwright/test';
import os from 'os';

export type HTMLAttribute = {name: string; value: string};
export type HTMLNode =
Expand Down Expand Up @@ -228,5 +229,5 @@ export const htmlSnapshot = async (locator: Locator) => {
}
};
recFn(rewriteIds(filterHtmlStructure(await htmlStructure(locator))));
return res.join('\n');
return res.join(os.EOL);
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class="container p-3"
>
<h5>
"Default pagination:"
"Basic pagination:"
</h5>
<nav
aria-label="Page navigation"
Expand Down
2 changes: 1 addition & 1 deletion react/demo/app/samples/pagination/Default.route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const PaginationDemo = () => {

return (
<>
<h5>Default pagination:</h5>
<h5>Basic pagination:</h5>
<Pagination page={page} collectionSize={60} onPageChange={(page) => setTimeout(() => setPage(page), 0)} />

<h5>No direction links:</h5>
Expand Down
2 changes: 1 addition & 1 deletion svelte/demo/samples/pagination/Default.route.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
let pageAlone = 1;
</script>

<h5>Default pagination:</h5>
<h5>Basic pagination:</h5>
<Pagination bind:page collectionSize={60} />

<h5>No direction links:</h5>
Expand Down

0 comments on commit 6ade3d7

Please sign in to comment.