-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Try typing a plain query object * Interim * Interim * Interim * Interim * Remove deprecations * Interim * Interim * Interim * Interim * Interim * Interim * Interim * Interim * Interim * Interim * Interim * Interim * Rename entryId => id * Use pr.pkg.new * Update package with repository * Use node 20 * Remove comment until stackblitz-labs/pkg.pr.new#264 is available * Fix expr calls * Interim * Fix tabs * Minor * Update query docs * Update page api, update init command * Update madge config * Don't use report in browser context * Run build before packaging prs * Undefined parameters effectively remove the filter * Update page api * Default to string * Warn on duplicate entities * Rename entries => children * Always included bundled fields * Fix incorrect paths * Rename phase => status * Interim * Update locale null check * Cleanup * Assign fields to objectfield * Add Field.create utility function * Update getting started * Minor * Update to Next 15 * Introduce withAlinea to work around turbopack failing to throw a runtime error if dynamic imports are not found. Compile to cjs because Next is stuck in the past. * Interim * Update changelog * Provide entry id in translations * Detect Next.js for init cmd. This should really just be a selection prompt which we'll get to. * Don't fail here * Provide types for query with multiple content types * Strip apostrophe * The mutate call marks the entry as dirty but that's not necessary here * Infer non-null if initialValue is set on select field * Use Field initial values on entry creation * Implement notIn * Add button to open references * More entryId renaming * Link to files directly * Fix rich text toolbar not in bottom position if page length is smaller than viewport height * Allow markup in help option * Limit image uploads to select file types * Replace i18nId with id + locale * Attempt at recovering linked ids * Use values * Await fix * Allow uppcase in locale names * Remove debug log * Bundle both config and views in one entrypoint in dev mode * Remove ts buildinfo so all declarations are regenerated * Collate locale column to nocase * Pass locale in preview payload * Don't suspend on preview payload changes because it becomes very visible if used with react 19 * Improve expanded types * Add entry fields to inferred types * Add links, lists and objects to query filter operations * Fix type
- Loading branch information
Showing
255 changed files
with
4,514 additions
and
5,296 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,7 +1,4 @@ | ||
{ | ||
"excludeRegExp": [ | ||
"CreateSelection" | ||
], | ||
"detectiveOptions": { | ||
"ts": { | ||
"skipTypeImports": true | ||
|
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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,17 @@ | ||
{ | ||
"_id": "2U6iFE1EOpe6RnrFORP7l8TFTCl", | ||
"_type": "Page", | ||
"_index": "a0", | ||
"_root": "pages", | ||
"title": "Root page", | ||
"metadata": { | ||
"title": "", | ||
"description": "", | ||
"openGraph": { | ||
"siteName": "", | ||
"image": {}, | ||
"title": "", | ||
"description": "" | ||
} | ||
} | ||
} |
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,7 @@ | ||
{ | ||
"_id": "2dgeccRswr67Tr7c5S4cphuEz6I", | ||
"_type": "Page", | ||
"_index": "a0", | ||
"_seeded": "/nl-nl/seededpath.json", | ||
"_root": "pages" | ||
} |
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,20 +1,17 @@ | ||
import {FieldOptions, ScalarField, WithoutLabel} from 'alinea/core' | ||
import {Field} from 'alinea' | ||
|
||
export interface PositionOptions extends FieldOptions<Position> {} | ||
|
||
export interface Position { | ||
export type PositionField = Field.Create<{ | ||
x: number | null | ||
y: number | null | ||
} | ||
|
||
class PositionField extends ScalarField<Position, PositionOptions> {} | ||
}> | ||
|
||
export function position( | ||
label: string, | ||
options: WithoutLabel<PositionOptions> = {} | ||
) { | ||
return new PositionField({ | ||
options: {label, ...options}, | ||
options: Field.Options<PositionField> = {} | ||
): PositionField { | ||
return Field.create({ | ||
label, | ||
options, | ||
view: '@/field/PositionField.view#PositionInput' | ||
}) | ||
} |
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,8 +1,9 @@ | ||
import {Config, Query} from 'alinea' | ||
import {Config} from 'alinea' | ||
import {Entry} from 'alinea/core' | ||
import * as examples from './example' | ||
|
||
export const Examples = Config.document('Examples', { | ||
contains: Object.values(examples), | ||
orderChildrenBy: Query.title.asc(), | ||
orderChildrenBy: {asc: Entry.title}, | ||
fields: {} | ||
}) |
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.