Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(site): isolated playground base code #2201

Merged
merged 2 commits into from
Jan 30, 2024
Merged

Conversation

ala-n
Copy link
Collaborator

@ala-n ala-n commented Jan 30, 2024

Example of usage:

<uip-root>
  <script type="text/html" uip-snippet label="Mixin example">
    The time is: <time time-inject-mixin></time>
  </script>
  <script type="text/html" uip-js-snippet label="Mixin example">
    import {ESLMixinElement} from '@exadel/esl';

    class TimeInjectMixin extends ESLMixinElement {
      static get is() {
        return 'time-inject-mixin';
      }

      connectedCallback() {
        super.connectedCallback();
        this.update();
      }

      update() {
        this.$host.innerHTML = new Date().toLocaleTimeString();
        this._timeout = setTimeout(() => this.update(), 1000);
      }
    }
    TimeInjectMixin.register();
  </script>

  <uip-snippets class="uip-toolbar" dropdown-view="@xs"></uip-snippets>
  <uip-preview isolation style="height: 50px"></uip-preview>
  <uip-editor label="Source code (HTML)" collapsible copy></uip-editor>
  <uip-editor script label="Source code (JS)" collapsible copy></uip-editor>
</uip-root>

@ala-n ala-n requested review from yadamskaya, a team, julia-murashko and abarmina and removed request for a team January 30, 2024 00:15
@ala-n ala-n self-assigned this Jan 30, 2024
@ala-n ala-n added the site Feature, enhancement or bug for demo site label Jan 30, 2024
Copy link

codeclimate bot commented Jan 30, 2024

Code Climate has analyzed commit 12f6ae9 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 64.6% (0.0% change).

View more on Code Climate.

@ala-n ala-n merged commit ad6bb9f into main Jan 30, 2024
8 checks passed
@ala-n ala-n deleted the feat/uip-isolated-env branch January 30, 2024 13:41
@github-actions github-actions bot locked and limited conversation to collaborators Jan 30, 2024
@ala-n
Copy link
Collaborator Author

ala-n commented Feb 14, 2024

🎉 This PR is included in version 5.0.0-beta.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ala-n
Copy link
Collaborator Author

ala-n commented Apr 5, 2024

🎉 This PR is included in version 4.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ala-n ala-n added the released label Apr 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
released on @beta released site Feature, enhancement or bug for demo site
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants