You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Harbs <ha...@gmail.com> on 2020/02/10 13:03:39 UTC
Status of Router
I have reworked Router in the feature/router branch to be more PAYG and I think it ended up more expressive and powerful.
Router can be declared with different behavior beads to handle different routing needs.
There’s currently:
StateRouting which automatically has two way syncing of the state and the route.
ComponentRouting which automatically adds and removes components based on the route.
ParameterRouting which executed functions depending on the specified parameters.
Title is handled in a bead too.
I still need to finish the following:
1. Catch hash links and redirect without reloading the window. There’s a skeleton bead for this, but it’s not yet functional.
2. Sub-hash routing which scrolls to a specific window position based on hash.
I’m open to other suggestions.
I believe the branch is ready to merge, but I’m not sure if Maven will currently build (specifically because I changed Storage and it now relies on Network and in turn Reflection). If one of the Maven folks could confirm, I’d appreciate it.
Thanks,
Harbs
Re: Status of Router
Posted by Harbs <ha...@gmail.com>.
OK. I’ll try to finish writing it tonight.
> On Feb 12, 2020, at 4:12 PM, Andrew Wetmore <co...@gmail.com> wrote:
>
> @Harbs <ma...@gmail.com> could you let me know if/when you are finished writing about routing in that help doc page? Once you are hands-clear, I think I want to move that general information to the other page I mentioned. The page you populated is for the tutorial, and will need a set of instructions, demo code, and explanations that build off the previous steps in the tutorial.
>
> a
>
> On Tue, Feb 11, 2020 at 2:12 PM Carlos Rovira <carlosrovira@apache.org <ma...@apache.org>> wrote:
> Yeah!, I saw it. I think is good to have this version too :)
> I hope to be able to separate some day MXRPC from MXRoyale some day, that
> will involve RemoteObject (that uses AMF), HTTPService and WebService, as
> we had in Flex. But SharedObject was not really part of Flex, is an
> emulation of a Flash API, so I think it would be good to pass SharedObject
> to Storage too, and make it independent of MXRoyale.
>
>
>
> El mar., 11 feb. 2020 a las 18:59, Harbs (<harbs.lists@gmail.com <ma...@gmail.com>>) escribió:
>
> > FYI, I added AMFStorage because I don’t think it should be necessary to
> > have an MX dependency just for that.
> >
> > I changed “flush” to “save” because I think that’s more descriptive.
> >
> > mx Storage should probably use AMFStorage under the hood, but for now it’s
> > probably “good enough”.
> >
> > This page should probably be updated:
> >
> > https://apache.github.io/royale-docs/features/loading-external-data/localsharedobject <https://apache.github.io/royale-docs/features/loading-external-data/localsharedobject>
> > <
> > https://apache.github.io/royale-docs/features/loading-external-data/localsharedobject <https://apache.github.io/royale-docs/features/loading-external-data/localsharedobject>
> > >
> >
> > > On Feb 11, 2020, at 7:51 PM, Harbs <harbs.lists@gmail.com <ma...@gmail.com>> wrote:
> > >
> > > Thanks. I was meaning to get to that today, but work got in the way… ;-)
> > >
> > >> On Feb 11, 2020, at 5:17 PM, Carlos Rovira <carlosrovira@apache.org <ma...@apache.org>>
> > wrote:
> > >>
> > >> Hi Harbs,
> > >> just mixed the router branch and added Network to the Storage pom.
> > >> all is building right :)
> > >>
> > >> El lun., 10 feb. 2020 a las 21:22, Harbs (<harbs.lists@gmail.com <ma...@gmail.com>>)
> > escribió:
> > >>
> > >>> I started working on link 2. It will need proper editing when I’m done
> > but
> > >>> it should contain the pertinent info.
> > >>>
> > >>>> On Feb 10, 2020, at 10:10 PM, Andrew Wetmore <cottage14@gmail.com <ma...@gmail.com>>
> > >>> wrote:
> > >>>>
> > >>>> Hi, @Harbs <mailto:harbs.lists@gmail.com <ma...@gmail.com>> . Is the feature "Router"
> > or
> > >>> "Routing"? I presumed "Routing", the way the Flex feature was "deep
> > >>> linking". There is a page for its documentation here [1], and I can
> > rename
> > >>> it if I guessed wrong about the feature name.
> > >>>>
> > >>>> There is also a step on routing in the basic tutorial waiting to be
> > >>> completed [2]. I can work on that if you can provide material for the
> > first
> > >>> page I mentioned.
> > >>>>
> > >>>>
> > >>>>
> > >>>> Andrew
> > >>>>
> > >>>> [1]
> > >>> https://github.com/apache/royale-docs/blob/master/features/routing.md <https://github.com/apache/royale-docs/blob/master/features/routing.md>
> > <
> > >>> https://github.com/apache/royale-docs/blob/master/features/routing.md <https://github.com/apache/royale-docs/blob/master/features/routing.md>>
> > >>>>
> > >>>> [2]
> > >>>
> > https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md <https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md>
> > >>> <
> > >>>
> > https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md <https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md>
> > >>>>
> > >>>> On Mon, Feb 10, 2020 at 9:03 AM Harbs <harbs.lists@gmail.com <ma...@gmail.com> <mailto:
> > >>> harbs.lists@gmail.com <ma...@gmail.com>>> wrote:
> > >>>> I have reworked Router in the feature/router branch to be more PAYG
> > and
> > >>> I think it ended up more expressive and powerful.
> > >>>>
> > >>>> Router can be declared with different behavior beads to handle
> > different
> > >>> routing needs.
> > >>>>
> > >>>> There’s currently:
> > >>>> StateRouting which automatically has two way syncing of the state and
> > >>> the route.
> > >>>> ComponentRouting which automatically adds and removes components based
> > >>> on the route.
> > >>>> ParameterRouting which executed functions depending on the specified
> > >>> parameters.
> > >>>> Title is handled in a bead too.
> > >>>>
> > >>>>
> > >>>> I still need to finish the following:
> > >>>> 1. Catch hash links and redirect without reloading the window.
> > There’s a
> > >>> skeleton bead for this, but it’s not yet functional.
> > >>>> 2. Sub-hash routing which scrolls to a specific window position based
> > on
> > >>> hash.
> > >>>>
> > >>>> I’m open to other suggestions.
> > >>>>
> > >>>> I believe the branch is ready to merge, but I’m not sure if Maven will
> > >>> currently build (specifically because I changed Storage and it now
> > relies
> > >>> on Network and in turn Reflection). If one of the Maven folks could
> > >>> confirm, I’d appreciate it.
> > >>>>
> > >>>> Thanks,
> > >>>> Harbs
> > >>>>
> > >>>>
> > >>>> --
> > >>>> Andrew Wetmore
> > >>>>
> > >>>> http://cottage14.blogspot.com/ <http://cottage14.blogspot.com/> <http://cottage14.blogspot.com/ <http://cottage14.blogspot.com/>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>
> > >>>
> > >>
> > >> --
> > >> Carlos Rovira
> > >> http://about.me/carlosrovira <http://about.me/carlosrovira>
> > >
> >
> >
>
> --
> Carlos Rovira
> http://about.me/carlosrovira <http://about.me/carlosrovira>
>
>
> --
> Andrew Wetmore
>
> http://cottage14.blogspot.com/ <http://cottage14.blogspot.com/>
>
>
>
>
Re: Status of Router
Posted by Andrew Wetmore <co...@gmail.com>.
@Harbs <ha...@gmail.com> could you let me know if/when you are
finished writing about routing in that help doc page? Once you are
hands-clear, I think I want to move that general information to the other
page I mentioned. The page you populated is for the tutorial, and will need
a set of instructions, demo code, and explanations that build off the
previous steps in the tutorial.
a
On Tue, Feb 11, 2020 at 2:12 PM Carlos Rovira <ca...@apache.org>
wrote:
> Yeah!, I saw it. I think is good to have this version too :)
> I hope to be able to separate some day MXRPC from MXRoyale some day, that
> will involve RemoteObject (that uses AMF), HTTPService and WebService, as
> we had in Flex. But SharedObject was not really part of Flex, is an
> emulation of a Flash API, so I think it would be good to pass SharedObject
> to Storage too, and make it independent of MXRoyale.
>
>
>
> El mar., 11 feb. 2020 a las 18:59, Harbs (<ha...@gmail.com>)
> escribió:
>
> > FYI, I added AMFStorage because I don’t think it should be necessary to
> > have an MX dependency just for that.
> >
> > I changed “flush” to “save” because I think that’s more descriptive.
> >
> > mx Storage should probably use AMFStorage under the hood, but for now
> it’s
> > probably “good enough”.
> >
> > This page should probably be updated:
> >
> >
> https://apache.github.io/royale-docs/features/loading-external-data/localsharedobject
> > <
> >
> https://apache.github.io/royale-docs/features/loading-external-data/localsharedobject
> > >
> >
> > > On Feb 11, 2020, at 7:51 PM, Harbs <ha...@gmail.com> wrote:
> > >
> > > Thanks. I was meaning to get to that today, but work got in the way…
> ;-)
> > >
> > >> On Feb 11, 2020, at 5:17 PM, Carlos Rovira <ca...@apache.org>
> > wrote:
> > >>
> > >> Hi Harbs,
> > >> just mixed the router branch and added Network to the Storage pom.
> > >> all is building right :)
> > >>
> > >> El lun., 10 feb. 2020 a las 21:22, Harbs (<ha...@gmail.com>)
> > escribió:
> > >>
> > >>> I started working on link 2. It will need proper editing when I’m
> done
> > but
> > >>> it should contain the pertinent info.
> > >>>
> > >>>> On Feb 10, 2020, at 10:10 PM, Andrew Wetmore <co...@gmail.com>
> > >>> wrote:
> > >>>>
> > >>>> Hi, @Harbs <ma...@gmail.com> . Is the feature "Router"
> > or
> > >>> "Routing"? I presumed "Routing", the way the Flex feature was "deep
> > >>> linking". There is a page for its documentation here [1], and I can
> > rename
> > >>> it if I guessed wrong about the feature name.
> > >>>>
> > >>>> There is also a step on routing in the basic tutorial waiting to be
> > >>> completed [2]. I can work on that if you can provide material for the
> > first
> > >>> page I mentioned.
> > >>>>
> > >>>>
> > >>>>
> > >>>> Andrew
> > >>>>
> > >>>> [1]
> > >>>
> https://github.com/apache/royale-docs/blob/master/features/routing.md
> > <
> > >>>
> https://github.com/apache/royale-docs/blob/master/features/routing.md>
> > >>>>
> > >>>> [2]
> > >>>
> >
> https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md
> > >>> <
> > >>>
> >
> https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md
> > >>>>
> > >>>> On Mon, Feb 10, 2020 at 9:03 AM Harbs <harbs.lists@gmail.com
> <mailto:
> > >>> harbs.lists@gmail.com>> wrote:
> > >>>> I have reworked Router in the feature/router branch to be more PAYG
> > and
> > >>> I think it ended up more expressive and powerful.
> > >>>>
> > >>>> Router can be declared with different behavior beads to handle
> > different
> > >>> routing needs.
> > >>>>
> > >>>> There’s currently:
> > >>>> StateRouting which automatically has two way syncing of the state
> and
> > >>> the route.
> > >>>> ComponentRouting which automatically adds and removes components
> based
> > >>> on the route.
> > >>>> ParameterRouting which executed functions depending on the specified
> > >>> parameters.
> > >>>> Title is handled in a bead too.
> > >>>>
> > >>>>
> > >>>> I still need to finish the following:
> > >>>> 1. Catch hash links and redirect without reloading the window.
> > There’s a
> > >>> skeleton bead for this, but it’s not yet functional.
> > >>>> 2. Sub-hash routing which scrolls to a specific window position
> based
> > on
> > >>> hash.
> > >>>>
> > >>>> I’m open to other suggestions.
> > >>>>
> > >>>> I believe the branch is ready to merge, but I’m not sure if Maven
> will
> > >>> currently build (specifically because I changed Storage and it now
> > relies
> > >>> on Network and in turn Reflection). If one of the Maven folks could
> > >>> confirm, I’d appreciate it.
> > >>>>
> > >>>> Thanks,
> > >>>> Harbs
> > >>>>
> > >>>>
> > >>>> --
> > >>>> Andrew Wetmore
> > >>>>
> > >>>> http://cottage14.blogspot.com/ <http://cottage14.blogspot.com/>
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>
> > >>>
> > >>
> > >> --
> > >> Carlos Rovira
> > >> http://about.me/carlosrovira
> > >
> >
> >
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
--
Andrew Wetmore
http://cottage14.blogspot.com/
Re: Status of Router
Posted by Carlos Rovira <ca...@apache.org>.
Yeah!, I saw it. I think is good to have this version too :)
I hope to be able to separate some day MXRPC from MXRoyale some day, that
will involve RemoteObject (that uses AMF), HTTPService and WebService, as
we had in Flex. But SharedObject was not really part of Flex, is an
emulation of a Flash API, so I think it would be good to pass SharedObject
to Storage too, and make it independent of MXRoyale.
El mar., 11 feb. 2020 a las 18:59, Harbs (<ha...@gmail.com>) escribió:
> FYI, I added AMFStorage because I don’t think it should be necessary to
> have an MX dependency just for that.
>
> I changed “flush” to “save” because I think that’s more descriptive.
>
> mx Storage should probably use AMFStorage under the hood, but for now it’s
> probably “good enough”.
>
> This page should probably be updated:
>
> https://apache.github.io/royale-docs/features/loading-external-data/localsharedobject
> <
> https://apache.github.io/royale-docs/features/loading-external-data/localsharedobject
> >
>
> > On Feb 11, 2020, at 7:51 PM, Harbs <ha...@gmail.com> wrote:
> >
> > Thanks. I was meaning to get to that today, but work got in the way… ;-)
> >
> >> On Feb 11, 2020, at 5:17 PM, Carlos Rovira <ca...@apache.org>
> wrote:
> >>
> >> Hi Harbs,
> >> just mixed the router branch and added Network to the Storage pom.
> >> all is building right :)
> >>
> >> El lun., 10 feb. 2020 a las 21:22, Harbs (<ha...@gmail.com>)
> escribió:
> >>
> >>> I started working on link 2. It will need proper editing when I’m done
> but
> >>> it should contain the pertinent info.
> >>>
> >>>> On Feb 10, 2020, at 10:10 PM, Andrew Wetmore <co...@gmail.com>
> >>> wrote:
> >>>>
> >>>> Hi, @Harbs <ma...@gmail.com> . Is the feature "Router"
> or
> >>> "Routing"? I presumed "Routing", the way the Flex feature was "deep
> >>> linking". There is a page for its documentation here [1], and I can
> rename
> >>> it if I guessed wrong about the feature name.
> >>>>
> >>>> There is also a step on routing in the basic tutorial waiting to be
> >>> completed [2]. I can work on that if you can provide material for the
> first
> >>> page I mentioned.
> >>>>
> >>>>
> >>>>
> >>>> Andrew
> >>>>
> >>>> [1]
> >>> https://github.com/apache/royale-docs/blob/master/features/routing.md
> <
> >>> https://github.com/apache/royale-docs/blob/master/features/routing.md>
> >>>>
> >>>> [2]
> >>>
> https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md
> >>> <
> >>>
> https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md
> >>>>
> >>>> On Mon, Feb 10, 2020 at 9:03 AM Harbs <harbs.lists@gmail.com <mailto:
> >>> harbs.lists@gmail.com>> wrote:
> >>>> I have reworked Router in the feature/router branch to be more PAYG
> and
> >>> I think it ended up more expressive and powerful.
> >>>>
> >>>> Router can be declared with different behavior beads to handle
> different
> >>> routing needs.
> >>>>
> >>>> There’s currently:
> >>>> StateRouting which automatically has two way syncing of the state and
> >>> the route.
> >>>> ComponentRouting which automatically adds and removes components based
> >>> on the route.
> >>>> ParameterRouting which executed functions depending on the specified
> >>> parameters.
> >>>> Title is handled in a bead too.
> >>>>
> >>>>
> >>>> I still need to finish the following:
> >>>> 1. Catch hash links and redirect without reloading the window.
> There’s a
> >>> skeleton bead for this, but it’s not yet functional.
> >>>> 2. Sub-hash routing which scrolls to a specific window position based
> on
> >>> hash.
> >>>>
> >>>> I’m open to other suggestions.
> >>>>
> >>>> I believe the branch is ready to merge, but I’m not sure if Maven will
> >>> currently build (specifically because I changed Storage and it now
> relies
> >>> on Network and in turn Reflection). If one of the Maven folks could
> >>> confirm, I’d appreciate it.
> >>>>
> >>>> Thanks,
> >>>> Harbs
> >>>>
> >>>>
> >>>> --
> >>>> Andrew Wetmore
> >>>>
> >>>> http://cottage14.blogspot.com/ <http://cottage14.blogspot.com/>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >> --
> >> Carlos Rovira
> >> http://about.me/carlosrovira
> >
>
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: Status of Router
Posted by Harbs <ha...@gmail.com>.
FYI, I added AMFStorage because I don’t think it should be necessary to have an MX dependency just for that.
I changed “flush” to “save” because I think that’s more descriptive.
mx Storage should probably use AMFStorage under the hood, but for now it’s probably “good enough”.
This page should probably be updated:
https://apache.github.io/royale-docs/features/loading-external-data/localsharedobject <https://apache.github.io/royale-docs/features/loading-external-data/localsharedobject>
> On Feb 11, 2020, at 7:51 PM, Harbs <ha...@gmail.com> wrote:
>
> Thanks. I was meaning to get to that today, but work got in the way… ;-)
>
>> On Feb 11, 2020, at 5:17 PM, Carlos Rovira <ca...@apache.org> wrote:
>>
>> Hi Harbs,
>> just mixed the router branch and added Network to the Storage pom.
>> all is building right :)
>>
>> El lun., 10 feb. 2020 a las 21:22, Harbs (<ha...@gmail.com>) escribió:
>>
>>> I started working on link 2. It will need proper editing when I’m done but
>>> it should contain the pertinent info.
>>>
>>>> On Feb 10, 2020, at 10:10 PM, Andrew Wetmore <co...@gmail.com>
>>> wrote:
>>>>
>>>> Hi, @Harbs <ma...@gmail.com> . Is the feature "Router" or
>>> "Routing"? I presumed "Routing", the way the Flex feature was "deep
>>> linking". There is a page for its documentation here [1], and I can rename
>>> it if I guessed wrong about the feature name.
>>>>
>>>> There is also a step on routing in the basic tutorial waiting to be
>>> completed [2]. I can work on that if you can provide material for the first
>>> page I mentioned.
>>>>
>>>>
>>>>
>>>> Andrew
>>>>
>>>> [1]
>>> https://github.com/apache/royale-docs/blob/master/features/routing.md <
>>> https://github.com/apache/royale-docs/blob/master/features/routing.md>
>>>>
>>>> [2]
>>> https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md
>>> <
>>> https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md
>>>>
>>>> On Mon, Feb 10, 2020 at 9:03 AM Harbs <harbs.lists@gmail.com <mailto:
>>> harbs.lists@gmail.com>> wrote:
>>>> I have reworked Router in the feature/router branch to be more PAYG and
>>> I think it ended up more expressive and powerful.
>>>>
>>>> Router can be declared with different behavior beads to handle different
>>> routing needs.
>>>>
>>>> There’s currently:
>>>> StateRouting which automatically has two way syncing of the state and
>>> the route.
>>>> ComponentRouting which automatically adds and removes components based
>>> on the route.
>>>> ParameterRouting which executed functions depending on the specified
>>> parameters.
>>>> Title is handled in a bead too.
>>>>
>>>>
>>>> I still need to finish the following:
>>>> 1. Catch hash links and redirect without reloading the window. There’s a
>>> skeleton bead for this, but it’s not yet functional.
>>>> 2. Sub-hash routing which scrolls to a specific window position based on
>>> hash.
>>>>
>>>> I’m open to other suggestions.
>>>>
>>>> I believe the branch is ready to merge, but I’m not sure if Maven will
>>> currently build (specifically because I changed Storage and it now relies
>>> on Network and in turn Reflection). If one of the Maven folks could
>>> confirm, I’d appreciate it.
>>>>
>>>> Thanks,
>>>> Harbs
>>>>
>>>>
>>>> --
>>>> Andrew Wetmore
>>>>
>>>> http://cottage14.blogspot.com/ <http://cottage14.blogspot.com/>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>
Re: Status of Router
Posted by Harbs <ha...@gmail.com>.
Thanks. I was meaning to get to that today, but work got in the way… ;-)
> On Feb 11, 2020, at 5:17 PM, Carlos Rovira <ca...@apache.org> wrote:
>
> Hi Harbs,
> just mixed the router branch and added Network to the Storage pom.
> all is building right :)
>
> El lun., 10 feb. 2020 a las 21:22, Harbs (<ha...@gmail.com>) escribió:
>
>> I started working on link 2. It will need proper editing when I’m done but
>> it should contain the pertinent info.
>>
>>> On Feb 10, 2020, at 10:10 PM, Andrew Wetmore <co...@gmail.com>
>> wrote:
>>>
>>> Hi, @Harbs <ma...@gmail.com> . Is the feature "Router" or
>> "Routing"? I presumed "Routing", the way the Flex feature was "deep
>> linking". There is a page for its documentation here [1], and I can rename
>> it if I guessed wrong about the feature name.
>>>
>>> There is also a step on routing in the basic tutorial waiting to be
>> completed [2]. I can work on that if you can provide material for the first
>> page I mentioned.
>>>
>>>
>>>
>>> Andrew
>>>
>>> [1]
>> https://github.com/apache/royale-docs/blob/master/features/routing.md <
>> https://github.com/apache/royale-docs/blob/master/features/routing.md>
>>>
>>> [2]
>> https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md
>> <
>> https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md
>>>
>>> On Mon, Feb 10, 2020 at 9:03 AM Harbs <harbs.lists@gmail.com <mailto:
>> harbs.lists@gmail.com>> wrote:
>>> I have reworked Router in the feature/router branch to be more PAYG and
>> I think it ended up more expressive and powerful.
>>>
>>> Router can be declared with different behavior beads to handle different
>> routing needs.
>>>
>>> There’s currently:
>>> StateRouting which automatically has two way syncing of the state and
>> the route.
>>> ComponentRouting which automatically adds and removes components based
>> on the route.
>>> ParameterRouting which executed functions depending on the specified
>> parameters.
>>> Title is handled in a bead too.
>>>
>>>
>>> I still need to finish the following:
>>> 1. Catch hash links and redirect without reloading the window. There’s a
>> skeleton bead for this, but it’s not yet functional.
>>> 2. Sub-hash routing which scrolls to a specific window position based on
>> hash.
>>>
>>> I’m open to other suggestions.
>>>
>>> I believe the branch is ready to merge, but I’m not sure if Maven will
>> currently build (specifically because I changed Storage and it now relies
>> on Network and in turn Reflection). If one of the Maven folks could
>> confirm, I’d appreciate it.
>>>
>>> Thanks,
>>> Harbs
>>>
>>>
>>> --
>>> Andrew Wetmore
>>>
>>> http://cottage14.blogspot.com/ <http://cottage14.blogspot.com/>
>>>
>>>
>>>
>>>
>>
>>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
Re: Status of Router
Posted by Carlos Rovira <ca...@apache.org>.
Hi Harbs,
just mixed the router branch and added Network to the Storage pom.
all is building right :)
El lun., 10 feb. 2020 a las 21:22, Harbs (<ha...@gmail.com>) escribió:
> I started working on link 2. It will need proper editing when I’m done but
> it should contain the pertinent info.
>
> > On Feb 10, 2020, at 10:10 PM, Andrew Wetmore <co...@gmail.com>
> wrote:
> >
> > Hi, @Harbs <ma...@gmail.com> . Is the feature "Router" or
> "Routing"? I presumed "Routing", the way the Flex feature was "deep
> linking". There is a page for its documentation here [1], and I can rename
> it if I guessed wrong about the feature name.
> >
> > There is also a step on routing in the basic tutorial waiting to be
> completed [2]. I can work on that if you can provide material for the first
> page I mentioned.
> >
> >
> >
> > Andrew
> >
> > [1]
> https://github.com/apache/royale-docs/blob/master/features/routing.md <
> https://github.com/apache/royale-docs/blob/master/features/routing.md>
> >
> > [2]
> https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md
> <
> https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md
> >
> > On Mon, Feb 10, 2020 at 9:03 AM Harbs <harbs.lists@gmail.com <mailto:
> harbs.lists@gmail.com>> wrote:
> > I have reworked Router in the feature/router branch to be more PAYG and
> I think it ended up more expressive and powerful.
> >
> > Router can be declared with different behavior beads to handle different
> routing needs.
> >
> > There’s currently:
> > StateRouting which automatically has two way syncing of the state and
> the route.
> > ComponentRouting which automatically adds and removes components based
> on the route.
> > ParameterRouting which executed functions depending on the specified
> parameters.
> > Title is handled in a bead too.
> >
> >
> > I still need to finish the following:
> > 1. Catch hash links and redirect without reloading the window. There’s a
> skeleton bead for this, but it’s not yet functional.
> > 2. Sub-hash routing which scrolls to a specific window position based on
> hash.
> >
> > I’m open to other suggestions.
> >
> > I believe the branch is ready to merge, but I’m not sure if Maven will
> currently build (specifically because I changed Storage and it now relies
> on Network and in turn Reflection). If one of the Maven folks could
> confirm, I’d appreciate it.
> >
> > Thanks,
> > Harbs
> >
> >
> > --
> > Andrew Wetmore
> >
> > http://cottage14.blogspot.com/ <http://cottage14.blogspot.com/>
> >
> >
> >
> >
>
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: Status of Router
Posted by Harbs <ha...@gmail.com>.
I started working on link 2. It will need proper editing when I’m done but it should contain the pertinent info.
> On Feb 10, 2020, at 10:10 PM, Andrew Wetmore <co...@gmail.com> wrote:
>
> Hi, @Harbs <ma...@gmail.com> . Is the feature "Router" or "Routing"? I presumed "Routing", the way the Flex feature was "deep linking". There is a page for its documentation here [1], and I can rename it if I guessed wrong about the feature name.
>
> There is also a step on routing in the basic tutorial waiting to be completed [2]. I can work on that if you can provide material for the first page I mentioned.
>
>
>
> Andrew
>
> [1] https://github.com/apache/royale-docs/blob/master/features/routing.md <https://github.com/apache/royale-docs/blob/master/features/routing.md>
>
> [2] https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md <https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md>
> On Mon, Feb 10, 2020 at 9:03 AM Harbs <harbs.lists@gmail.com <ma...@gmail.com>> wrote:
> I have reworked Router in the feature/router branch to be more PAYG and I think it ended up more expressive and powerful.
>
> Router can be declared with different behavior beads to handle different routing needs.
>
> There’s currently:
> StateRouting which automatically has two way syncing of the state and the route.
> ComponentRouting which automatically adds and removes components based on the route.
> ParameterRouting which executed functions depending on the specified parameters.
> Title is handled in a bead too.
>
>
> I still need to finish the following:
> 1. Catch hash links and redirect without reloading the window. There’s a skeleton bead for this, but it’s not yet functional.
> 2. Sub-hash routing which scrolls to a specific window position based on hash.
>
> I’m open to other suggestions.
>
> I believe the branch is ready to merge, but I’m not sure if Maven will currently build (specifically because I changed Storage and it now relies on Network and in turn Reflection). If one of the Maven folks could confirm, I’d appreciate it.
>
> Thanks,
> Harbs
>
>
> --
> Andrew Wetmore
>
> http://cottage14.blogspot.com/ <http://cottage14.blogspot.com/>
>
>
>
>
Re: Status of Router
Posted by Andrew Wetmore <co...@gmail.com>.
Hi, @Harbs <ha...@gmail.com> . Is the feature "Router" or "Routing"?
I presumed "Routing", the way the Flex feature was "deep linking". There
is a page for its documentation here [1], and I can rename it if I guessed
wrong about the feature name.
There is also a step on routing in the basic tutorial waiting to be
completed [2]. I can work on that if you can provide material for the first
page I mentioned.
Andrew
[1] https://github.com/apache/royale-docs/blob/master/features/routing.md
[2]
https://github.com/apache/royale-docs/blob/master/create-an-application/application-tutorial/routing.md
On Mon, Feb 10, 2020 at 9:03 AM Harbs <ha...@gmail.com> wrote:
> I have reworked Router in the feature/router branch to be more PAYG and I
> think it ended up more expressive and powerful.
>
> Router can be declared with different behavior beads to handle different
> routing needs.
>
> There’s currently:
> StateRouting which automatically has two way syncing of the state and the
> route.
> ComponentRouting which automatically adds and removes components based on
> the route.
> ParameterRouting which executed functions depending on the specified
> parameters.
> Title is handled in a bead too.
>
>
> I still need to finish the following:
> 1. Catch hash links and redirect without reloading the window. There’s a
> skeleton bead for this, but it’s not yet functional.
> 2. Sub-hash routing which scrolls to a specific window position based on
> hash.
>
> I’m open to other suggestions.
>
> I believe the branch is ready to merge, but I’m not sure if Maven will
> currently build (specifically because I changed Storage and it now relies
> on Network and in turn Reflection). If one of the Maven folks could
> confirm, I’d appreciate it.
>
> Thanks,
> Harbs
--
Andrew Wetmore
http://cottage14.blogspot.com/
Re: Status of Router
Posted by Carlos Rovira <ca...@apache.org>.
Hi Harbs,
great work! Please can you generate docs [1] for this? Andrew and I can do
something, but will always be worst than what you can add, since you did it.
About maven build, can you add this to pom.xml in Storage:
<dependency>
<groupId>org.apache.royale.framework</groupId>
<artifactId>Network</artifactId>
<version>0.9.7-SNAPSHOT</version>
<type>swc</type>
<classifier>js</classifier>
</dependency>
and this other to profile "option-with-swf":
<dependency>
<groupId>org.apache.royale.framework</groupId>
<artifactId>Network</artifactId>
<version>0.9.7-SNAPSHOT</version>
<type>swc</type>
<classifier>swf</classifier>
</dependency>
and merge?
I then can try to build develop and check if something is wrong and fix it
Thanks!
[1] https://apache.github.io/royale-docs/get-started
El lun., 10 feb. 2020 a las 14:03, Harbs (<ha...@gmail.com>) escribió:
> I have reworked Router in the feature/router branch to be more PAYG and I
> think it ended up more expressive and powerful.
>
> Router can be declared with different behavior beads to handle different
> routing needs.
>
> There’s currently:
> StateRouting which automatically has two way syncing of the state and the
> route.
> ComponentRouting which automatically adds and removes components based on
> the route.
> ParameterRouting which executed functions depending on the specified
> parameters.
> Title is handled in a bead too.
>
>
> I still need to finish the following:
> 1. Catch hash links and redirect without reloading the window. There’s a
> skeleton bead for this, but it’s not yet functional.
> 2. Sub-hash routing which scrolls to a specific window position based on
> hash.
>
> I’m open to other suggestions.
>
> I believe the branch is ready to merge, but I’m not sure if Maven will
> currently build (specifically because I changed Storage and it now relies
> on Network and in turn Reflection). If one of the Maven folks could
> confirm, I’d appreciate it.
>
> Thanks,
> Harbs
--
Carlos Rovira
http://about.me/carlosrovira