-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* scratch no longer has a /tmp dir, move to alpine we need all the files cause Docker COPY doesn't support glob * Update routes_home.templ (#319) Remove two typos * toggleAll & setAll use path instead of regex (#318) * toggleAll & setAll use path instead of regex Fixes #317 * Fix wording --------- Co-authored-by: Ben Croker <[email protected]> * Update release note * Update go_deeper.md (#320) Minor edits to Signals section, for grammar, clarity * Make retries and backoff configurable (#316) Fixes #190 * Fix links to SDKs * Tweak intro code * Improve getting started guide * Fix and improve getting started guide * Add web components * evt.detail.value not working for third party libs (#326) * evt.detail.value not working for third party libs Fixes #324 * regex is never fun * fix possible xss on errors * Add circular logo * fix clipboard usage on front page * Support closing SSE connection from client side (#327) Fixes #276 * Fix link in readme * refactor: `nodejs`, `npm`, and `pnpm` are needed for the `libpub` task * data-ref bug (#333) * data-ref bug Fixes #331 * Merge branch 'develop' of github.com:starfederation/datastar into delaneyj/issue331 * adds context.WithTimeout to site smoketests (#334) removes got lib refs * Java SDK (#321) * Examples * SDK and Readme * Added build files * Fixed Readme * add SDKs to frontpage * TODONE: BEN! * Importing Datastar (#335) Fixes #329 * bad link * Rename default constant (#330) * Rename default constant * Fix PHP usage * Build * Remove Teleport from docs * Bundler bug (#347) Fixes #339 * make modifiers spec compliant (#346) * make modifiers spec compliant Fixes #345 * `_` for modifier args is now back to `.`. Please let it end * remove unused error * bump version * Release notes and VSCode release * Update VSCode version number * Fix up modifier docs --------- Co-authored-by: Wm Talcott <[email protected]> Co-authored-by: Ben Croker <[email protected]> Co-authored-by: Ben Croker <[email protected]> Co-authored-by: Andrew Welch <[email protected]> Co-authored-by: zangster300 <[email protected]> Co-authored-by: Peter Humulock <[email protected]>
- Loading branch information
1 parent
06fb18f
commit 20ad2ff
Showing
122 changed files
with
2,941 additions
and
458 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.21.0-beta1 | ||
0.21.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
{%- func javaConsts(data *ConstTemplateData) -%} | ||
package starfederation.datastar; | ||
|
||
import starfederation.datastar.enums.FragmentMergeMode; | ||
|
||
/** | ||
* {%s data.DoNotEdit %} | ||
*/ | ||
public final class Consts { | ||
public static final String DATASTAR_KEY = "{%s data.DatastarKey %}"; | ||
public static final String VERSION = "{%s data.Version %}"; | ||
public static final int VERSION_CLIENT_BYTE_SIZE = {%d data.VersionClientByteSize %}; | ||
public static final int VERSION_CLIENT_BYTE_SIZE_GZIP = {%d data.VersionClientByteSizeGzip %}; | ||
{%- for _, d := range data.DefaultDurations %} | ||
// {%s= d.Description %} | ||
public static final int DEFAULT_{%s d.Name.ScreamingSnake %} = {%d durationToMs(d.Duration) %}; | ||
{%- endfor -%} | ||
{%- for _, b := range data.DefaultBools %} | ||
// {%s= b.Description %} | ||
public static final boolean DEFAULT_{%s b.Name.ScreamingSnake %} = {%v b.Value %}; | ||
{%- endfor -%} | ||
{%- for _, s := range data.DefaultStrings %} | ||
// {%s= s.Description %} | ||
public static final String DEFAULT_{%s s.Name.ScreamingSnake %} = "{%s s.Value %}"; | ||
{%- endfor -%} | ||
{%- for _, enum := range data.Enums -%} | ||
{%- if enum.Default != nil %} | ||
// {%s= enum.Description %} | ||
public static final FragmentMergeMode DEFAULT_{%s enum.Name.ScreamingSnake %} = FragmentMergeMode.{%s enum.Default.Name.Pascal %}; | ||
{%- endif -%} | ||
{%- endfor -%} | ||
|
||
// Dataline literals. | ||
{%- for _, literal := range data.DatalineLiterals -%} | ||
public static final String {%s literal.ScreamingSnake %}_DATALINE_LITERAL = "{%s literal.Camel %} "; | ||
{%- endfor -%} | ||
} | ||
{%- endfunc -%} | ||
|
||
{%- func javaEventType(data *ConstTemplateData) -%} | ||
package starfederation.datastar.enums; | ||
|
||
/** | ||
* {%s data.DoNotEdit %} | ||
*/ | ||
public enum EventType { | ||
{%- for _, enum := range data.Enums -%} | ||
{%- if enum.Name.Pascal == "EventType" -%} | ||
{%- for i, entry := range enum.Values %}{% if i < len(enum.Values) - 1 %} | ||
// {%s entry.Description %} | ||
{%s entry.Name.Pascal %}("{%s entry.Value %}"), | ||
{%- else -%} | ||
|
||
// {%s entry.Description %} | ||
{%s entry.Name.Pascal %}("{%s entry.Value %}"); | ||
{%- endif -%} | ||
{%- endfor -%} | ||
|
||
private final String value; | ||
|
||
EventType(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
{%- endif -%} | ||
{%- endfor -%} | ||
} | ||
{%- endfunc -%} | ||
|
||
{%- func javaFragmentMergeMode(data *ConstTemplateData) -%} | ||
package starfederation.datastar.enums; | ||
|
||
/** | ||
* {%s data.DoNotEdit %} | ||
*/ | ||
public enum FragmentMergeMode { | ||
{%- for _, enum := range data.Enums -%} | ||
{%- if enum.Name.Pascal == "FragmentMergeMode" -%} | ||
{%- for i, entry := range enum.Values %}{% if i < len(enum.Values) - 1 %} | ||
// {%s entry.Description %} | ||
{%s entry.Name.Pascal %}("{%s entry.Value %}"), | ||
{%- else -%} | ||
|
||
// {%s entry.Description %} | ||
{%s entry.Name.Pascal %}("{%s entry.Value %}"); | ||
{%- endif -%} | ||
{%- endfor -%} | ||
|
||
private final String value; | ||
|
||
FragmentMergeMode(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
{%- endif -%} | ||
{%- endfor -%} | ||
} | ||
{%- endfunc -%} | ||
|
||
{%- func javaConsoleMode(data *ConstTemplateData) -%} | ||
package starfederation.datastar.enums; | ||
|
||
/** | ||
* {%s data.DoNotEdit %} | ||
*/ | ||
public enum ConsoleMode { | ||
{%- for _, enum := range data.Enums -%} | ||
{%- if enum.Name.Pascal == "ConsoleMode" -%} | ||
{%- for _, entry := range enum.Values %} | ||
// {%s entry.Description %} | ||
{%s entry.Name.Pascal %}("{%s entry.Value %}"), | ||
{%- endfor -%} | ||
; | ||
|
||
private final String value; | ||
|
||
ConsoleMode(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
{%- endif -%} | ||
{%- endfor -%} | ||
} | ||
{%- endfunc -%} |
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.