Verified Commit 07fff3cd authored by tallero's avatar tallero

backup

parent 542a78a0
Pipeline #178765 failed with stage
in 33 seconds
......@@ -45,6 +45,13 @@ You can download the installer [here](https://gitlab.gnome.org/World/Daty/upload
#### Archlinux
The package `daty-git` has been published on [AUR](https://aur.archlinux.org/packages/daty-git/).
### PostmarketOS
```
sudo apk add gcc musl-dev python3-dev
pip install --user daty
```
#### Ubuntu Disco (19.04)
# apt install python3-gi gir1.2-gtk-3.0 python3-pip libhandy-0.0-0
......
......@@ -331,7 +331,6 @@
<object class="GtkStack" id="entity_stack">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">center</property>
<property name="hexpand">True</property>
<child>
<object class="GtkScrolledWindow" id="entity_button">
......@@ -347,6 +346,7 @@
<child>
<object class="GtkGrid">
<property name="visible">True</property>
<property name="halign">center</property>
<property name="can_focus">False</property>
<child>
<object class="GtkLabel" id="entity">
......@@ -354,9 +354,12 @@
<property name="can_focus">False</property>
<property name="valign">end</property>
<property name="hexpand">True</property>
<property name="halign">center</property>
<property name="vexpand">True</property>
<property name="label" translatable="yes">entity</property>
<property name="justify">center</property>
<property name="wrap">True</property>
<property name="wrap_mode">word-char</property>
<property name="ellipsize">middle</property>
<attributes>
<attribute name="font-desc" value="Cantarell Bold 10"/>
......@@ -449,61 +452,85 @@
</packing>
</child>
<child>
<object class="GtkBox">
<object class="HdyLeaflet" id="entity_buttons_end_leaflet">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">horizontal</property>
<property name="visible_child">entity_buttons_end_box</property>
<property name="mode_transition_type">slide</property>
<property name="child_transition_type">slide</property>
<property name="interpolate_size">False</property>
<child>
<object class="GtkButton" id="entity_discussion_open_external">
<object class="GtkBox" id="entity_buttons_end_box">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="image">discussion-page-icon</property>
<property name="always_show_image">True</property>
<property name="tooltip_text" translatable="yes">Open talk page in the browser</property>
<signal name="clicked" handler="entity_discussion_open_external_clicked_cb" swapped="no"/>
<property name="can_focus">False</property>
<property name="orientation">horizontal</property>
<child>
<object class="HdyLeaflet" id="entity_buttons_end_group_leaflet">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="visible_child">entity_discussion_open_external</property>
<property name="mode_transition_type">slide</property>
<property name="child_transition_type">slide</property>
<property name="interpolate_size">False</property>
<style>
<class name="linked"/>
</style>
<child>
<object class="GtkButton" id="entity_history_open_external">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="image">history-page-icon</property>
<property name="always_show_image">True</property>
<property name="tooltip_text" translatable="yes">Open history in the browser</property>
</object>
<packing>
<property name="pack_type">start</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="entity_discussion_open_external">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="image">discussion-page-icon</property>
<property name="always_show_image">True</property>
<property name="tooltip_text" translatable="yes">Open talk page in the browser</property>
<signal name="clicked" handler="entity_discussion_open_external_clicked_cb" swapped="no"/>
</object>
<packing>
<property name="pack_type">start</property>
<property name="position">0</property>
</packing>
</child>
</object>
<packing>
<property name="pack_type">end</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="pack_type">start</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="entity_history_open_external">
<object class="GtkButton" id="entity_menu">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="image">history-page-icon</property>
<property name="always_show_image">True</property>
<property name="tooltip_text" translatable="yes">Open history in the browser</property>
<property name="image">entity-menu-icon</property>
<signal name="clicked" handler="entity_menu_clicked_cb" swapped="no"/>
</object>
<packing>
<property name="pack_type">start</property>
<property name="position">1</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
<style>
<class name="linked"/>
</style>
</object>
<packing>
<property name="pack_type">end</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="entity_menu">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="image">entity-menu-icon</property>
<signal name="clicked" handler="entity_menu_clicked_cb" swapped="no"/>
</object>
<packing>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
</object>
<packing>
<property name="name">sub_header_bar</property>
......
......@@ -6,7 +6,6 @@
<template class="Entity" parent="GtkStack">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
<object class="GtkGrid" id="view">
......@@ -14,25 +13,6 @@
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
<object class="GtkLabel" id="unit">
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<property name="halign">start</property>
<property name="margin_left">4</property>
<property name="margin_start">4</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="label" translatable="yes">unit</property>
<style>
<class name="dim-label"/>
</style>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
</packing>
</child>
<child>
<object class="GtkEventBox" id="value_eventbox">
<property name="visible">True</property>
......@@ -48,6 +28,9 @@
<property name="wrap">True</property>
<property name="wrap_mode">char</property>
<property name="xalign">0</property>
<attributes>
<attribute name="font-desc" value="Cantarell 9"/>
</attributes>
</object>
</child>
</object>
......@@ -56,6 +39,28 @@
<property name="top_attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="unit">
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<property name="halign">start</property>
<property name="margin_left">4</property>
<property name="margin_start">4</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="label" translatable="yes">unit</property>
<attributes>
<attribute name="font-desc" value="Cantarell 8"/>
</attributes>
<style>
<class name="dim-label"/>
</style>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
</packing>
</child>
</object>
<packing>
<property name="name">view</property>
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.0 -->
<!-- Generated with glade 3.22.1 -->
<interface>
<requires lib="gtk+" version="3.22"/>
<requires lib="libhandy" version="0.0"/>
......@@ -38,8 +38,6 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="margin_start">12</property>
<property name="margin_end">12</property>
<property name="margin_top">18</property>
<property name="margin_bottom">18</property>
<property name="vexpand">False</property>
......@@ -81,7 +79,6 @@
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<property name="row_spacing">18</property>
<property name="column_homogeneous">True</property>
<child>
<placeholder/>
</child>
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.0 -->
<!-- Generated with glade 3.22.1 -->
<interface>
<requires lib="gtk+" version="3.22"/>
<!-- interface-css-provider-path property.css -->
......@@ -18,10 +18,11 @@
<property name="can_focus">False</property>
<property name="margin_start">3</property>
<property name="margin_end">3</property>
<property name="hexpand">False</property>
<property name="vexpand">True</property>
<property name="label" translatable="yes">Property</property>
<property name="justify">right</property>
<property name="wrap">True</property>
<property name="wrap_mode">word-char</property>
<property name="xalign">1</property>
<attributes>
<attribute name="font-desc" value="Cantarell Bold 10"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.0 -->
<!-- Generated with glade 3.22.1 -->
<interface>
<requires lib="gtk+" version="3.22"/>
<template class="QualifierProperty" parent="GtkEventBox">
......@@ -16,6 +16,7 @@
<property name="label" translatable="yes">Label</property>
<property name="justify">right</property>
<property name="wrap">True</property>
<property name="wrap_mode">char</property>
<property name="xalign">1</property>
<attributes>
<attribute name="font-desc" value="Cantarell Bold 8"/>
......
......@@ -26,4 +26,5 @@
border-bottom-left-radius: 0px;
border-left-width:0px;
padding:0px;
font:
}
......@@ -2,11 +2,6 @@
<!-- Generated with glade 3.22.1 -->
<interface>
<requires lib="gtk+" version="3.22"/>
<object class="GtkImage" id="icon1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">pan-end-symbolic</property>
</object>
<template class="Value" parent="GtkGrid">
<property name="visible">True</property>
<property name="can_focus">False</property>
......@@ -18,7 +13,6 @@
<property name="hexpand">True</property>
<property name="row_spacing">3</property>
<property name="column_spacing">8</property>
<property name="column_homogeneous">True</property>
<child>
<placeholder/>
</child>
......@@ -74,23 +68,7 @@
<property name="halign">start</property>
<property name="valign">center</property>
<child>
<object class="GtkToggleButton" id="reference_new_old">
<property name="label" translatable="yes">Add reference</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="no_show_all">True</property>
<property name="valign">center</property>
<property name="image">icon1</property>
<property name="relief">half</property>
<style>
<class name="linked"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
<placeholder/>
</child>
<child>
<object class="GtkEventBox" id="button">
......@@ -130,29 +108,19 @@
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<child>
<object class="GtkGrid">
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<property name="valign">start</property>
<property name="column_homogeneous">True</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
</packing>
</child>
<property name="hexpand">True</property>
<child>
<object class="GtkSearchEntry" id="qualifier_new">
<property name="name">qualifier_new</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="is_focus">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="primary_icon_name">list-add-symbolic</property>
<property name="primary_icon_activatable">False</property>
<property name="primary_icon_sensitive">False</property>
......@@ -164,16 +132,19 @@
</style>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">2</property>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkSearchEntry" id="reference_new">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="primary_icon_name">bookmark-new-symbolic</property>
<property name="primary_icon_activatable">False</property>
<property name="primary_icon_sensitive">False</property>
......@@ -185,19 +156,9 @@
</style>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">0</property>
<property name="width">2</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
</object>
<packing>
<property name="left_attach">5</property>
<property name="top_attach">0</property>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
......
......@@ -99,7 +99,7 @@ Comment[vi]=Wikidata Editor
Comment[zh_CN]=Wikidata Editor
Comment[zh_HK]=Wikidata Editor
Comment[zh_TW]=Wikidata Editor
Exec=daty
TryExec=daty
StartupNotify=true
Terminal=false
Icon=ml.prevete.Daty
......@@ -212,4 +212,4 @@ MimeType=text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/ht
#Name[vi]=Cửa sổ ẩn danh mới
#Name[zh_CN]=新建隐身窗口
#Name[zh_TW]=新增無痕式視窗
#Exec=/usr/bin/chromium --incognito
\ No newline at end of file
#Exec=/usr/bin/chromium --incognito
......@@ -32,6 +32,7 @@ from gi.repository.GObject import SignalFlags as sf
from gi.repository.GObject import TYPE_NONE, TYPE_STRING, TYPE_PYOBJECT
from gi.repository.GLib import idle_add #, PRIORITY_LOW
from gi.repository.Gtk import STYLE_PROVIDER_PRIORITY_APPLICATION, CssProvider, Grid, IconSize, PositionType, SearchEntry, Separator, StyleContext, Grid, Template
from gi.repository.Pango import FontDescription
from pprint import pprint
from .entity import Entity
......@@ -84,6 +85,8 @@ class Value(Grid):
Grid.__init__(self, *args, **kwargs)
self.qualifier_new.modify_font(FontDescription('Cantarell 8'))
self.reference_new.modify_font(FontDescription('Cantarell 8'))
self.qualifier_pos = {}
self.qualifier_row = 0
......
{
"app-id": "ml.prevete.Daty",
"runtime": "org.gnome.Platform",
"runtime-version":"3.34",
"sdk": "org.gnome.Sdk",
"app-id" : "ml.prevete.Daty",
"runtime" : "org.gnome.Platform",
"runtime-version" : "3.34",
"sdk" : "org.gnome.Sdk",
"command" : "daty",
"finish-args" : [
"--share=ipc",
......@@ -15,7 +15,7 @@
"--env=DCONF_USER_CONFIG_DIR=.config/dconf"
],
"modules" : [
"python3-appdirs.json",
"python3-appdirs.json",
"python3-beautifulsoup4.json",
"python3-bleach.json",
"python3-pywikibot.json",
......@@ -24,7 +24,7 @@
{
"name" : "libhandy",
"buildsystem" : "meson",
"config-opts": [
"config-opts" : [
"-Dtests=false",
"-Dexamples=false",
"-Dgtk_doc=false",
......@@ -42,14 +42,14 @@
{
"name" : "daty",
"buildsystem" : "simple",
"build-commands": [
"build-commands" : [
"pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} .",
"install -Dm644 ${PWD}/flatpak/ml.prevete.Daty.appdata.xml /app/share/metainfo/ml.prevete.Daty.appdata.xml"
],
"sources" : [
{
"type" : "git",
"tag": "1.0beta",
"tag" : "1.0beta",
"url" : "https://gitlab.gnome.org/World/Daty"
},
{
......@@ -58,5 +58,10 @@
}
]
}
]
],
"build-options" : {
"env" : {
"GTK_DEBUG" : "interactive"
}
}
}
......@@ -17,7 +17,6 @@
"--env=DCONF_USER_CONFIG_DIR=.config/dconf"
],
"modules" : [
"plotinus.json",
"python3-appdirs.json",
"python3-beautifulsoup4.json",
"python3-bleach.json",
......@@ -63,5 +62,9 @@
"Q356"
]
}
]
],
"build-options" : {
"env" : {
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment