Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
fix bugs: Can't add super drag for links and images
Browse files Browse the repository at this point in the history
  • Loading branch information
zimocode committed Jul 27, 2019
1 parent c23be04 commit 1879007
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 17 deletions.
4 changes: 2 additions & 2 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -918,10 +918,10 @@
"message": "This is a bunch of test text, select the text and drag to draw the line, and then select the action you need."
},
"test_ldrg": {
"message": "<a href='###'> This is a test link, drag the link and draw lines, and select action you need. </ A>"
"message": "This is a test link, drag the link and draw lines, and select action you need."
},
"test_idrg": {
"message": "This is a test image, drag the image and draw the line, and then select the action you need: <img src='../icon.png' />"
"message": "This is a test image, drag the image and draw the line, and then select the action you need: "
},
"tip_actionname": {
"message": "Customization action name"
Expand Down
4 changes: 2 additions & 2 deletions _locales/it/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -918,10 +918,10 @@
"message": "Questo è un testo d'esempio. Selezionare il testo e trascinare per tratteggiare la linea, e selezionare l'azione richiesta."
},
"test_ldrg": {
"message": "<a href='###'> Questo è un link d'esempio, trascinare il link e tratteggiare linee, e selezionare l'azione richiesta.</A>"
"message": "Questo è un link d'esempio, trascinare il link e tratteggiare linee, e selezionare l'azione richiesta."
},
"test_idrg": {
"message": "Questa è un'immagine d'esempio. Trascinare l'immagine e tratteggiare la linea, e selezionare l'azione richiesta: <img src='../icon.png' />"
"message": "Questa è un'immagine d'esempio. Trascinare l'immagine e tratteggiare la linea, e selezionare l'azione richiesta:"
},
"tip_actionname": {
"message": "Nome azione personalizzata"
Expand Down
4 changes: 2 additions & 2 deletions _locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -918,10 +918,10 @@
"message": "Это тестовый текст, выделите текст и потяните его, чтобы нарисовать линию, а затем выберите нужное действие."
},
"test_ldrg": {
"message": "<a href='###'> Это тестовая ссылка, перетащите ссылку и нарисуйте линию, а затем выберите нужное действие. </ A>"
"message": "Это тестовая ссылка, перетащите ссылку и нарисуйте линию, а затем выберите нужное действие."
},
"test_idrg": {
"message": "Перетащите тестовую картинку нарисовав линию и затем выберите нужное действие. <img src='../icon.png' />"
"message": "Перетащите тестовую картинку нарисовав линию и затем выберите нужное действие."
},
"tip_actionname": {
"message": "Настройки названия действия"
Expand Down
4 changes: 2 additions & 2 deletions _locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -915,10 +915,10 @@
"message": "这是一段测试文本,选中文本并拖曳画线,然后选择你所需要的操作即可。"
},
"test_ldrg": {
"message": "<a href='###'>这是一个测试链接,拖动此链接并画线,然后选择你所需要的操作。</ a>"
"message": "这是一个测试链接,拖动此链接并画线,然后选择你所需要的操作。"
},
"test_idrg": {
"message": "这是测试用图片,拖动改图片并画线,然后选择所需操作: <img src='../icon.png' />"
"message": "这是测试用图片,拖动改图片并画线,然后选择所需操作:"
},
"tip_actionname": {
"message": "使用自定义操作名称"
Expand Down
4 changes: 2 additions & 2 deletions _locales/zh_TW/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -915,10 +915,10 @@
"message": "這是一些測試文字,選擇這些文字並拖曳畫出手勢,然後再選擇你需要的動作。"
},
"test_ldrg": {
"message": "<a href='###'> 這是測試連結,拖曳此連結並畫出手勢,然後選擇你需要的動作。 </ A>"
"message": "這是測試連結,拖曳此連結並畫出手勢,然後選擇你需要的動作。"
},
"test_idrg": {
"message": "這是張測試圖片,拖曳此圖片並畫出手勢,然後選擇你需要的動作:<img src='../icon.png' />"
"message": "這是張測試圖片,拖曳此圖片並畫出手勢,然後選擇你需要的動作:"
},
"tip_actionname": {
"message": "自定動作名稱"
Expand Down
7 changes: 4 additions & 3 deletions change.log
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"log": [
{
"ver":"6.3.873.886",
"date":"2019.07.14",
"ver":"6.4.887.1001",
"date":"2019.07.27",
"content":[
"new mini-apps: convert case, auto reload."
"new mini-apps: convert case, auto reload.",
"fix bugs: Can't add super drag for links and images"
]
},
{
Expand Down
1 change: 0 additions & 1 deletion js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -2320,7 +2320,6 @@ var sub={
//mini apps
autoreload:function(){
var _appname="autoreload";
sub.initAppconf(_appname);
sub.insertTest(_appname);
},
convertcase:function(){
Expand Down
2 changes: 1 addition & 1 deletion js/inject/pxmovie.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ sue.apps.pxmovie={
let _data=dom.querySelector(".data"),
_loading=dom.querySelector(".loading"),
_name=sue.domCreate("div",{setName:["className"],setValue:["name"]},null,null,null,value.name),
_back=sue.apps.domCreate("button",{setName:["className"],setValue:["back"]},null,"display: inline-block;",null,sue.apps.i18n("back"));
_back=sue.apps.domCreate("button",{setName:["className"],setValue:["back"]},null,"display: inline-block;",null,sue.apps.i18n("btn_back"));
_info=sue.apps.domCreate("div",{setName:["className"],setValue:["info"]});
_data.textContent="";
_data.appendChild(_name);
Expand Down
9 changes: 8 additions & 1 deletion js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -2390,14 +2390,21 @@ var suo={
}
var testdes=suo.getI18n("test_"+((confArray[0]=="mges"||confArray[0]=="touch")?"mges":confArray[1]));
var btnArray=["",suo.getI18n("btn_cancel"),suo.getI18n("btn_done")];
let testDom=suo.domCreate2("div",{setName:["className"],setValue:["testbox"]},null,null,null,testdes);
if(confArray[1]=="ldrg"){
testDom.textContent="";
testDom.appendChild(suo.domCreate2("a",{setName:["href"],setValue:["###"]},null,null,null,suo.getI18n("test_ldrg")));
}else if(confArray[1]=="idrg"){
testDom.appendChild(suo.domCreate2("img",{setName:["src"],setValue:["../icon.png"]}));
}
var addOBJ=suo.initAPPbox(btnArray,[480,320],suo.getI18n("title_newaction"),"bg");
addOBJ.classList.add("su_app_test");
addOBJ.dataset.confobj=confobj;
addOBJ.dataset.confid=confid;
addOBJ.dataset.close="resetdirect";
addOBJ.dataset.actiontype=actionType;
addOBJ.querySelectorAll("input[type=button]")[1].className="box_btn box_btn_next";
addOBJ.querySelector(".box_content").appendChild(suo.domCreate2("div",{setName:["className"],setValue:["testbox"]},null,null,null,testdes));
addOBJ.querySelector(".box_content").appendChild(testDom);
//when adding drag text, set the test text can be drag.
if(confArray[1]=="tdrg"){
addOBJ.style.cssText+="-webkit-user-select:text;-moz-user-select:text;user-select:text;";
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"minimum_chrome_version": "22",
"name": "smartUp Gestures(Beta)",
"short_name":"smartUp",
"version": "6.3.873.886",
"version": "6.4.887.1001",
"description": "__MSG_ext_des__",
"default_locale": "en",
"author":"zimo",
Expand Down

0 comments on commit 1879007

Please sign in to comment.