问题标签 [supersonic]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
146 浏览

angularjs - 更改超级导航栏按钮标题

Supersonic/Steroids/Appgyver 中的 AngularJS 新手

我知道这不起作用,但是有一些变体可以工作:

尽管

或者,通过超级导航栏按钮上的代码更改标题,而无需删除和添加它们。

似乎无法专门访问按钮,例如:

或者

即使他们应该居住在其中的某个地方,根据:

http://docs.appgyver.com/supersonic/guides/ui/native-components/navigation-bar/#programmatic-apis

有什么建议么?

0 投票
1 回答
71 浏览

asynchronous - 类固醇/超音速与 Parse 处理数据关系

我正在使用 Parse 作为后端开发一个带有 Steroids/Supersonic 的应用程序,我正在努力使对象关系正常工作。这里举个例子。我有一对一关系的一门课程和一位老师(每门课程一位老师)。我想做的是与相关老师一起显示所有课程。为了在 Parse 中建立关系,我使用了指向另一个类的列类型“Pointer”。在控制器中的代码下方:

上述代码的问题是变量“i”未在 Teacher.find() 函数中定义,因此我无法将教师对象分配给正确的课程对象。我什至尝试在范围内使用特定变量来管理索引,就像在其他代码中一样:

第二个代码的问题是,老师随机链接到错误的课程可能是因为函数 find() 被异步调用,所以两个变量 i 和 index 并不总是同步。

我相信我面临的问题更多地与 angularjs 的异步行为有关,但我真的不知道如何解决它。谢谢你的帮助!

0 投票
1 回答
2236 浏览

angularjs - Can I Build my app within a week with Supersonic UI ( AppGyver )

So here's my problem . I have a web app designed in code-igniter php and we're exposing an API for it to talk to a mobile app.

It's an education based CMS app. It allows teachers and students to log in and see grades and any calendar based notifications

We want to quickly build an app which will let students log in and see their notifications or messages . I am sort of a front-end developer and was looking into Ionic and AppGyver's Supersonic UI ?

What would be the best choice to go for now ( I need something within a week ), also , how do I set up my app folder to talk with the api or bind it with the api ?

I've not really worked with APIs a whole lot and a bit lost in how to set up my project. I come from a graphic design background and have been recently using Yeoman for my front-end workflow.

We plan to migrate from code-igniter to AngularJS in the long run , so Ionic would be a good choice then but for now I need to get a working app and was wondering if SuperSonic UI would be a better choice for an hybrid app.

Questions :

  1. From what I've described what would be the best solution to go forward with?
  2. Also, can anyone suggest any tutorials / screencast which does an in-depth project with one of the technologies ? Or maybe some other frameworks I've not taken into account ?
  3. Can I set it up with Yeoman ? Can I use Yeoman and Ionic together ?
0 投票
1 回答
124 浏览

angularjs - 角度错误 - 无法插值:(device.osVersion)Android 4.0.3

所以我在我的 Android 手机上运行 Supersonic 演示模板,我不断收到阻止应用加载页面的错误:

无法插值:{{device.osVersion | strReplace:'_':'.'}} 类型错误:无法读取未定义的属性“替换”

页面设置教程页面:此链接

调试控制台截图:

在此处输入图像描述

这是来自 AppGyver 的原始原始演示,所以它应该可以开箱即用!这在我的 iPad 上确实有效,所以它似乎是 Android 的错误。我正在通过手机上的 AppGyver Scanner 运行该应用程序。

安卓版本:4.0.3

这是应用程序屏幕的样子(黑色空间是错误,因为那里应该有文本和按钮):

在此处输入图像描述

0 投票
1 回答
273 浏览

angularjs - 根据初始登录视图中的数据在后台加载视图

这不是我的实际用例,但我试图了解如何根据另一个视图使用 appgyver 超音速框架的信息来加载视图的概念。

我有 3 个页面,Login.html、MainPage.html 和 Load.html。他们每个人都有自己的控制器。当应用程序打开时,它首先进入登录页面。登录页面将用户名和密码发送到我的服务器,然后返回成功与否。成功后,应用程序会转到主页。我希望 load.html 了解已发生登录并开始使用用户适当的内容加载视图。因此,当用户从主页转到加载页面时,所有信息都已加载。我试图理解如何用超音速实现这一目标的概念。

0 投票
1 回答
259 浏览

android - 使用 angularjs Android 打开另一个应用程序

有没有办法用 angularJs 在类固醇上打开另一个应用程序?我想打开系统的默认 gps 导航器,将我自己的应用程序中的起始纬度和经度以及目标位置传递给它。

0 投票
1 回答
830 浏览

session - Appgyver Supersonic 的登录和会话管理

我刚开始使用 Appgyver 的平台:Supersonic 和 Composer。我已经设置了我的登录屏幕,它的作用是在确认用户确实是用户后,将其重定向到另一个页面。我使用 supersonic.ui.initialView.dismiss() 来实现这一点。

现在我需要在本地存储数据,以便我可以持续访问它以扩展功能。任何想法,参考链接等?

0 投票
0 回答
94 浏览

steroids - 在 AppGyver 类固醇/超音速上调试随机崩溃

我在 appgyver steroids 平台上开发了一个单页应用程序。出于某种原因,该应用程序经常在 iPhone 6 和 iPhone 6 plus 上崩溃。它有时会在 iPhone 5s 上崩溃。这些崩溃是非常随机的。

我已经构建了一个自定义的 appgyver 调试扫描器构建,但无法找到与崩溃相关的任何重要内容。在 xcode 设备日志中,我注意到了这一点:

如何以某种方式调试应用程序以找到导致此崩溃的原因?

0 投票
2 回答
274 浏览

php - Composer 中的“测试失败:错误:Access-Control-Allow-Origin 不允许来源”-Appgyver

我正在 Appgyver Composer 中创建一个应用程序。我有一个 PHP 文件,它完美并在触发时给出适当的响应。我尝试通过放置适当的凭据来使其成为一项服务。但是,测试返回以下错误:

知道如何在 Composer 中将访问控制允许登录设置为“*”吗?该标签已存在于我服务器上的 php 文件中。

我还在“*”的标题中添加了“Access-Control-Allow-Origin”,希望这可以解决问题。

有人做过类似的事情吗?

0 投票
1 回答
147 浏览

ios - 切换视图超音速

我正在开发使用超音速的跨平台应用程序。但是,我相信我在理解超音速如何在内部管理视图方面存在问题。

首先,我不想使用本机导航栏,因为它不支持标题内的图像,例如公司徽标。这就是我不想将视图推入视图堆栈的方式(因为它会自动添加 < 返回按钮)。

我的问题是:如何在 appgyver 的超音速中切换视图而不将其推入视图堆栈?类似标签,但没有标签界面。是否可以?

也许我应该只使用不同的移动 Web 应用程序框架?