Commit graph

1218 commits

Author SHA1 Message Date
Hannu Nyman
3288fe76ab Luci opkg/packages: Show package size in list of available packages
Add package *.ipk size information to package listing in Luci,
as opkg was today extended to support listing also the size information.
Visible fields are now: name, version, size, description

That will help users considering installation of a certain package
to assess its size impact on flash.

Note: Opkg data includes the size of the .ipk file, not the expanded size.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-09-16 12:47:48 +03:00
Hannu Nyman
a42c0bb618 luci-mod-admin-full: restore opkg feed config capability
opkg config was recently changed by https://dev.openwrt.org/changeset/46491/

Existing /etc/opkg.conf was split to three:
   /etc/opkg.conf -> base opkg configuration
   /etc/opkg/distfeeds.conf -> default Openwrt package feeds
   /etc/opkg/customfeeds.conf -> custom package feeds

Since then, the actual feed definitions have not been visible/configurable,
as only /etc/opkg.conf has been visible in Luci.

This patch restores the capability to see and edit package feed definitions.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-09-15 13:01:03 +03:00
Hannu Nyman
ca75918ff3 Luci opkg/packages: Limit version string display to 26 chars
Many packages currently include a git commit hash in version string.
That makes versions string very long and the version column takes much space
when listing available/installed packages in Luci.

Longest version string is 58 characters (micropython).
85 packages have at least 50 chars and 150 packages at least 40 chars.

Adjust Luci to display max. 26 characters (= luci's own version string).

Longer version strings are cut to: "first 21c" + ".." + "last 3c"

The last 3 chars are used to preserve the possible PKG_REVISION string.
E.g. 'opkg' has only hash+PKG_REVISION, so using only start of the string
might not be optimal.

Examples:

1.3.10-20150302-f2a889564b3a215902622b040a1247af38cb8203-1
1.3.10-20150302-f2a88..3-1

0.1-20150302-654c7d288603f7dae09eb09b57fb67b38c7ac6c3-1
0.1-20150302-654c7d28..3-1

9c97d5ecd795709c8584e972bfdf3aee3a5b846d-7
9c97d5ecd795709c8584e..d-7

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-09-01 22:45:17 +03:00
Jo-Philipp Wich
ed1a641696 Fix module lines in several luadoc files
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-09-01 16:43:19 +02:00
Karl Palsson
8084babf18 luci.utils.contains: update documentation to match reality
Signed-off-by: Karl Palsson <karlp@remake.is>
2015-09-01 16:33:41 +02:00
Karl Palsson
2a77918b02 http.protocol: Support filehandlers for unhandled encodings
The setfilehandler() functions used for mime and url encoded message
bodies all operate with a signature of fh(meta, chunk, eof), but for
unhandled encodings, the callback was directly assigned to the sink
function, which has a signature of snk(chunk).  Insert a wrapper to
properly generate the EOF flag, and include a stub "meta" block
providing a virtual "name" and also the original client provided
Content-Type header, to possibly help with taking alternative actions in
the file handler.

The sink function created for raw content decoding also used the wrong
signature for the sink function.

Signed-off-by: Karl Palsson <karlp@remake.is>
2015-08-18 17:52:48 +02:00
Hannu Nyman
d63a7cb582 Timezone information: update to 2015f
Changes in 2015e and 2015f:
http://mm.icann.org/pipermail/tz-announce/2015-June/000032.html
http://mm.icann.org/pipermail/tz-announce/2015-August/000033.html

     Morocco will suspend DST from 2015-06-14 03:00 through 2015-07-19 02:00,
     not 06-13 and 07-18 as we had guessed.

     Assume Cayman Islands will observe DST starting next year, using US rules.
     Although it isn't guaranteed, it is the most likely.

     North Korea switches to +0830 on 2015-08-15.
     The abbreviation remains "KST".

     Uruguay no longer observes DST.

     Moldova starts and ends DST at 00:00 UTC, not at 01:00 UTC.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-08-17 22:53:11 +03:00
Christian Schoenebeck
0be846d7ff ipkg.lua: compare_versions() Replace Lua Math Library call
function compare_versions(): replace Lua Math Library call with if clause

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-08-04 21:14:48 +02:00
Christian Schoenebeck
237740b386 cbi.lua: Fix Flag.parse() to set "self.section.changed"
Add to set "self.section.changed" on changes like other values do.

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-08-02 07:06:42 +02:00
Christian Schoenebeck
305528b3cc ipkg.lua: new function compare_version
* minor fix function _list() set to local
* new function compare_version() lua version of opkg compare-version

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-07-27 18:08:54 +02:00
Georgi Valkov
ec170d6282 Fix: A disabled wireless network may be shown as enabled, when multiple networks are defined on the same radio. 2015-07-27 11:37:09 +02:00
Georgi Valkov
159b60f449 Fix: Status for disabled wireless networks may display the SSID, BSSID and Mode of an active network on the same radio. 2015-07-27 11:37:09 +02:00
Georgi Valkov
0110494b18 When editing an AP wireless network in LuCI, if one or more STA networks are also present on the same radio, then the channel is locked and cannot be changed for the AP. The case when all STA networks are disabled is not considered. This patch fixes the issue. Disabled networks no longer apply a lock on the channel. 2015-07-27 11:37:09 +02:00
Georgi Valkov
48c8cad48a Workaround: saved administration site user and pass may appear on the Wireless configuration page, replacing the WPA key. 2015-07-27 11:37:09 +02:00
Jo-Philipp Wich
3610f3222d luci-mod-rpc: move luci config require into the authentication function (#427)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-07-15 23:28:16 +02:00
Jo-Philipp Wich
16047d03c5 luci-mod-rpc: add missing luci config require
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-07-15 22:30:45 +02:00
Lars Kruse
e7f57e0caf Add luci support for dnsmasq option '--servers-file'
Signed-off-by: Lars Kruse <lists@sumpfralle.de>
2015-07-14 23:32:08 +02:00
Jo-Philipp Wich
74b5c1bbc3 luci-mod-admin-full: restart the firewall instead of reloading it
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-07-03 16:59:51 +02:00
Manuel Munz
30e344c60a fix ifname in wifi overview (freifunk public status). 2015-06-28 15:59:53 +02:00
Manuel Munz
bccc6279fc Fix routes on freifunk public status page 2015-06-28 15:55:37 +02:00
fabio70mi
bae48b6f88 Update base.po
Corrected "Aggironamento Automatico" to "Aggiornamento Automatico"
2015-06-17 16:06:20 +02:00
Jo-Philipp Wich
d2638a7a0e Merge pull request #389 from hnyman/timezone2015d
Timezone information is updated to 2015d, released on 24 Apr 2015.
2015-06-10 10:19:19 +02:00
Manuel Munz
5ef1485133 modules/freifunk: fix basics cbi model 2015-05-30 23:01:24 +02:00
Jo-Philipp Wich
1dada8cc44 luci-base: prevent parsing the form input after cbi emergency save
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-05-26 17:32:11 +02:00
Jo-Philipp Wich
fe14cd5a66 luci-base: fallback to a simple text editor if uci config cannot be loaded
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-05-26 17:12:42 +02:00
Jo-Philipp Wich
03610cee3a luci-base: rename .gitignore to .placeholder
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-05-26 16:27:05 +02:00
Hannu Nyman
c7a6830536 Timezone information is updated to 2015d, released on 24 Apr 2015.
I used build/zoneinfo2lua.pl to pull data from my Ubuntu 15.04.

Changes in 2015d are rather small:
http://mm.icann.org/pipermail/tz-announce/2015-April/000031.html

   Changes affecting future time stamps
     Egypt will not observe DST in 2015 and will consider canceling it
     permanently.  For now, assume no DST indefinitely.

   Change affecting time zone abbreviations
     The abbreviations for Hawaii-Aleutian standard and daylight times
     have been changed from HAST/HADT to HST/HDT, as per US Government
     Printing Office style.  This affects only America/Adak since 1983,
     as America/Honolulu was already using the new style.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-05-23 17:34:13 +03:00
nightcoffee
08a38a0493 luci-base: Add cache control in index.html
Signed-off-by: Night Coffee <ydkf@qq.com>
2015-05-18 20:05:02 +08:00
Jo-Philipp Wich
58a42eaf9b Merge pull request #358 from freifunk-leipzig/master
luci-mod-admin-full: change adress to an ipv6-enabled host
2015-04-27 15:09:17 +02:00
Jo-Philipp Wich
70ffeb36db Merge pull request #370 from 981213/pull_request
Fix some Simplified Chinese translations in luci.
2015-04-27 15:08:21 +02:00
Andrija Vucinic
64b052bbd8 luci-mod-admin-full: mount points SWAP fix
SWAP section was showing an error. Fixed it to display the devices/size properly.
2015-04-25 23:35:33 +02:00
郭传鈜
c39edc189f luci-base:Add some Simplified Chinese translation for luci-base 2015-04-24 13:34:28 +08:00
Christian Schoenebeck
2fdd19524d fix wrong xhtml tags in po files
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-04-21 21:26:00 +02:00
Jo-Philipp Wich
6a13d73c29 Synchronize translations
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-04-20 10:35:08 +02:00
Hannu Nyman
4d18e09e05 Timezone data: Update to 2015c
Timezone information is updated to 2015c, released on 14 Apr 2015.

I used build/zoneinfo2lua.pl to pull data from my Ubuntu 14.10.

Changes in 2015b and 2015c are rather small:
http://mm.icann.org/pipermail/tz-announce/2015-March/000029.html
http://mm.icann.org/pipermail/tz-announce/2015-April/000030.html

     Mongolia will start observing DST again this year, from the last
     Saturday in March at 02:00 to the last Saturday in September at 00:00.

     Palestine will start DST on March 28, not March 27.  Also,
     correct the fall 2014 transition from September 26 to October 24.
     Adjust future predictions accordingly.

     Egypt's spring-forward transition is at 24:00 on April's last Thursday,
     not 00:00 on April's last Friday.  2015's transition will therefore be on
     Thursday, April 30 at 24:00, not Friday, April 24 at 00:00.  Similar fixes
     apply to 2026, 2037, 2043, etc.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-04-19 10:48:03 +03:00
Jo-Philipp Wich
ec09e995a8 luci-mod-admin-full: handle missing size for block devices
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-04-17 12:39:11 +02:00
FreifunkUFO
c34eb6349f luci-mod-admin-full: switch to a ipv6 enabled host
change hostname to dev.openwrt.org.. that is available via ipv4 AND ipv6
2015-04-15 03:27:35 +02:00
Jo-Philipp Wich
622cfc673a luci-mod-admin-full: simply fstab configuration
Simplify fstab setup by offering hints for uuid/label and device node options.
Fix rootfs handling logic by removing obsolete references to the "is_rootfs"
option and offering "/" and "/overlay" choices for the mountpoint instead.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-04-12 20:20:01 +02:00
Jo-Philipp Wich
6160a53ab9 luci-base: fix backslash escaping in luci.util.serialize_json()
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-03-18 12:43:29 +01:00
Jo-Philipp Wich
4ab6dcea9b Merge pull request #336 from legendtang/fix
luci-base: fix wrong pattern of urlencode() (encode '+' properly) #182
2015-03-10 18:56:41 +01:00
江海客
7b04bc7473 /etc/config/dhcp
config dhcp null
2015-03-02 15:14:24 +08:00
Legend Tang
d79f5da13f luci-base: fix wrong pattern of urlencode() (encode '+' properly) #182 2015-03-01 03:03:08 +08:00
Christian Schoenebeck
51a047426d wifi.lua: add "Back to Overview" button
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-02-14 11:27:57 +01:00
Jo-Philipp Wich
ec1a86977b Avoid setting duplicate cookies
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-02-09 16:30:11 +01:00
Jo-Philipp Wich
ec90cd69ed luci-base: pass session timeout as integer
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-02-09 13:03:44 +01:00
Jo-Philipp Wich
240458ea8a luci-mod-freifunk: fix public status page
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-02-09 12:15:06 +01:00
Jo-Philipp Wich
993cf12229 luci-base: establish ubus connection before dropping privileges (#310)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-02-09 12:14:20 +01:00
Christian Schoenebeck
9132d83461 admin_network: interface details, implement back to overview
Implements "Back to Overview" on interface details page

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-02-08 19:17:44 +01:00
Hannu Nyman
fd1042f5ee Timezone data: Update to 2015a
Timezone information is updated to 2015a, released on 30 Jan 15.

I used build/zoneinfo2lua.pl to pull data from my Ubuntu 14.10.

Changes are rather small:
http://mm.icann.org/pipermail/tz-announce/2015-January/000028.html

The Mexican state of Quintana Roo, represented by America/Cancun,
will shift from Central Time with DST to Eastern Time without DST.

Chile will not change clocks in April or thereafter; its new
standard time will be its old daylight saving time.
This affects America/Santiago, Pacific/Easter, and Antarctica/Palmer.

Ps. I manually edited headers to have the shorter new copyright,
instead of the long one generated buy the script.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-02-04 18:50:36 +02:00
Jo-Philipp Wich
84346cd178 Move inline documentation into separate files.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-29 16:26:46 +01:00