问题标签 [rikulo]

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 回答
175 浏览

html - Rikulo Bootjack Dart 模态窗口在 android 设备上不起作用

我正在使用 Dart 构建一个 webapp,并且我使用了 Rikulo 的 Bootjack 库来获取一些 Bootstrap 元素。我的应用程序中有两个模态窗口。

其中一个是通过触发按钮启动的,所以我只需要按照示例进行操作:

https://github.com/rikulo/bootjack/tree/master/example

我希望仅在某些情况下启动另一个,因此我编写了以下代码:

我注意到这两个窗口在桌面环境中都可以正常工作,但我无法在 Android 设备上运行第二种方式。我已经用 Chrome、Chrome Beta 和 Firefox 进行了测试。有谁知道可能发生了什么?这是库或设备限制还是我做错了什么?

谢谢!

0 投票
1 回答
48 浏览

dart - Rikulo - 加载子视图时调用哪个视图方法

使用 Rikulo_UI(一个 Dart 库),我创建了一个自定义 View 子类,并在 UXL 模板中使用它,并向其中添加了一些子 View(Button、TextView 等)。

在添加了 UXL 中定义的所有子项后调用哪个 View 方法?

0 投票
1 回答
60 浏览

dart - Rikulo - touchEnd 检查是否在边界内结束

当“监听”touchEnd事件时View,我如何确定触摸在其边界内结束的天气?换句话说,相当于 iOS touchUpInside

注意 - 我添加了一个touchEnd处理程序,不仅on.click因为 iOS 设备有 300 毫秒的故意延迟,而且我想消除它(请指出是否有更好的解决方案)。

0 投票
2 回答
2401 浏览

rikulo - Rikulo-Stream 每天都会因 -“SocketException: OS Error: Broken pipe, errno = 32”而崩溃

我有一个简单的网络应用程序(http://www.webdungeon2.org)(6 页)在最新(2014 年 4 月)版本的 Rikulo Stream(Ubuntu 13.04)Dart 1.2 上运行,我在浏览时收到以下错误(我思考):

服务器崩溃,然后我重新启动它。这在 3 天内发生了 3 次。

我也得到了这些(不会使网站崩溃):

有什么建议么?

更新 - 4 月 12 日

Dart 1.3 上仍然出现问题,但错误代码不同

哔叽

更新 - 4 月 28 日

该问题似乎已在 Dart SDK 1.3.3 版中得到解决。我的服务器已经顺利运行了 2 天。

哔叽

0 投票
1 回答
189 浏览

ssl - Rikulo Stream 是否支持服务器端 SSL?

在寻找 SSL 支持的过程中,我查看了 Rikulo Security 包,不幸的是它不支持 SSL。

如果它不支持 SSL,那么如果 url 映射能够以某种方式定义它(类似于安全插件在 Grails 中的实现方式)以及 SSL 证书路径的配置参数,那就太好了。

可以配置的方式示例:

有人让 SSL 与 Rikulo Stream 一起工作吗?

0 投票
1 回答
119 浏览

cordova - RikuloGap地理定位

我正在学习使用 RikuloGap 使用 Dart 语言而不是 Javascript 编写 PhoneGap 应用程序。

在 Rikulo 网站上的 API 参考中,我读到:

基于 Cordova/PhoneGap,Rikulo Gap 目前支持 Android、iOS 等七种移动平台的九种原生设备功能。Rikulo Gap 将 Dart 连接到 Cordova 的 JavaScript API,并可以访问以下九个本地设备服务:

加速度计:访问设备的运动传感器。相机:使用设备相机拍摄照片。捕获:使用设备的媒体捕获应用程序捕获媒体文件。指南针:访问设备的指南针传感器。Connection:获取设备的连接信息。联系人:读取/更新/创建/删除设备的联系人列表。设备:获取设备的基本信息。地理位置:访问设备的地理位置传感器。通知:触发设备的视觉/听觉/振动通知。

但是,阅读 Pub 上上传的 RikuloGap DartDoc 或分析 GitHub 上的源代码,我只能找到以下参考:

rikulo_accelerometer rikulo_contact rikulo_device rikulo_notification

那么,在最近的版本中,对地理定位、相机等的支持是否从未实现过?如果它仍然存在,你能告诉我正确的导入以及如何使用 API 吗?

先感谢您

0 投票
1 回答
230 浏览

twitter-bootstrap - 无法读取“package:rikulo_commons/html.dart”(找不到资产 rikulo_commons|lib/html.dart。)

按照以下说明操作后:

https://github.com/rikulo/bootjack

当我尝试从 Dart 编辑器“生成 js”时,我收到错误消息:

0 投票
2 回答
616 浏览

android - How to use the Cordova/Phonegap Filesystem API with Rikulo?

execuse my english... I try to write a Cross-Platform Webapp initially just for the Android platfrom. I have to write and read Files to the Filesystem of the mobile. I've already seen that the package rikulo_gap not natively supports the Filesystem API. The Fileystem API used by Rikulo is that one, which of course doesn't work on a mobile platform.

So I've seen that Rikulo's Js-Package should make my Dart-Code interoperable with my Cordova.js-File (v4.0.0), which includes the global function requestFileSystem(persistence,size,success-funct,fail-funct). Now i've tried to make my code work, but i don't get a Filesystem back - i'm getting errors...

Here's my Dart-Code:

LogCat says:

What annoys me is, that the first Exception on the Stack is a dart.wrapException, so i guess it's a general Dart<>Js Interop problem.

I followed the official cordova instruction for Building with Android and currently i'm building with the Windows CommandLine with cordova run android. (And yes i've installed the plugins (File, FileUtil, Device via CommandLine and they are added to the project).

So can anybody tell me:

  1. Is it like i think and there is not a common way to use the cordova-Filesystem API with Rikulo/Dart?
  2. If 1. is true, is there a workaround? Anybody a Idea, a loose note oder anything else which could help me?
0 投票
2 回答
134 浏览

dart - 如何在 Rikulo Stream 中压缩输出?

我想在Rikulo Stream中压缩 HTTP 响应。我必须显式调用 GZIP 吗?或者,有一个启用选项?

0 投票
1 回答
159 浏览

menu - Rikulo中是否有菜单组件

我在 Rikulo 中找不到任何关于如何创建和使用菜单栏、菜单、子菜单和菜单项的示例。

谁能指出我正确的方向?

问候