-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(headless): moved ssr files next to their csr counterparts (#3150)
- Loading branch information
1 parent
4d3c39d
commit 8f1490b
Showing
9 changed files
with
71 additions
and
74 deletions.
There are no files selected for viewing
5 changes: 2 additions & 3 deletions
5
...ess/src/app/ssr-engine/ssr-engine.test.ts → ...p/search-engine/search-engine.ssr.test.ts
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
18 changes: 0 additions & 18 deletions
18
packages/headless/src/app/ssr-engine/types/search-engine.ts
This file was deleted.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
...r/result-list/headless-ssr-result-list.ts → ...s/result-list/headless-result-list.ssr.ts
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
19 changes: 19 additions & 0 deletions
19
packages/headless/src/controllers/search-box/headless-search-box.ssr.ts
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import {SearchEngine} from '../../app/search-engine/search-engine'; | ||
import {ControllerDefinitionWithoutProps} from '../../app/ssr-engine/types/common'; | ||
import {SearchBox, SearchBoxProps, buildSearchBox} from './headless-search-box'; | ||
|
||
export type { | ||
SearchBoxOptions, | ||
SearchBoxProps, | ||
SearchBoxState, | ||
SearchBox, | ||
} from './headless-search-box'; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export const defineSearchBox = ( | ||
props?: SearchBoxProps | ||
): ControllerDefinitionWithoutProps<SearchEngine, SearchBox> => ({ | ||
build: (engine) => buildSearchBox(engine, props), | ||
}); |
8 changes: 4 additions & 4 deletions
8
.../headless-ssr-search-parameter-manager.ts → .../headless-search-parameter-manager.ssr.ts
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
23 changes: 0 additions & 23 deletions
23
packages/headless/src/controllers/ssr/search-box/headless-ssr-search-box.ts
This file was deleted.
Oops, something went wrong.
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,4 +1,9 @@ | ||
{ | ||
"extends": "next/core-web-vitals", | ||
"root": true | ||
"root": true, | ||
"settings": { | ||
"next": { | ||
"rootDir": "packages/samples/headless-ssr" | ||
} | ||
} | ||
} |