Giter Club home page Giter Club logo

astro's People

Contributors

daun avatar hirasso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

astro's Issues

Check if types need to be exported

Describe the problem

Describe the proposed solution

  • Add a types key to the exports in package.json

How important is this feature to you?

  • Nice to have
  • Would make my life a lot easier
  • I cannot use swup without it

Add readme note about global instance availability

Describe the problem

  • The global instance window.swup is not available immediately: #6
  • Users might have to wait for the swup:enable event on the document before accessing it

Describe the proposed solution

  • We should add a note about this and an example:
<script>
  console.log('swup not yet enabled', window.swup);
  document.addEventListener('swup:enable', () => {
    console.log('swup enabled', window.swup);
  });
</script>

Version 1.3.1 not working (1.3.0 works)

Hello!
First of all thanks for this package. i was already using swup with astro for an year but this make everything cleaner and easy.

I just wanted to warn you that with the last version of yesterday (1.3.1) there is something broken with the SwupA11yPlugin (maybe some versions?).

I also tryed with a clean astro project and same error.

The error is: Uncaught (in promise) TypeError: Cannot create property 'announcements' on boolean 'true'.

Am i doing something wrong? Thanks!

globalInstance window.swup is undefined

Description of the issue
When assigning globalInstance: true in the configuration, window.swup returns undefined.

How to reproduce the issue

Just start an astro project with the CLI, install swup with the CLI, and assign globalInstance to true in the config.

Context and environment

Happens in Firefox and Chrome, haven't checked others.
@swup/astro version is 1.0.2.

// astro.config.mjs
import { defineConfig } from "astro/config";
import swup from "@swup/astro";

export default defineConfig({
  integrations: [
    swup({
      globalInstance: true,
    }),
  ],
});
// script anywhere in the app
console.log(window.swup) // returns undefined

Before creating this issue...

  • Have you provided all helpful information available?
  • Have you checked closed issues for similar/related problems?
  • Have you considered creating a demo so we can help you better?

Theme configuration object

Describe the problem

When using a built in theme, we cannot pass a configuration object. this makes it impossible to change the direction of the overlay theme easely.

Describe the proposed solution

adding a themeConfig object that can be passed to the new SwupOverlayTheme() class, like so :

SwupOverlayTheme({
  direction: 'to-right'
});

How important is this feature to you?

  • Nice to have
  • Would make my life a lot easier
  • I cannot use swup without it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.