aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/network.js
blob: 611aadb7bc476a5fc20041a083cc54d62a001214 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
const Component = require('react').Component
const PropTypes = require('prop-types')
const h = require('react-hyperscript')
const connect = require('react-redux').connect
const classnames = require('classnames')
const inherits = require('util').inherits
const NetworkDropdownIcon = require('./dropdowns/components/network-dropdown-icon')

Network.contextTypes = {
  t: PropTypes.func,
}

module.exports = connect()(Network)


inherits(Network, Component)

function Network () {
  Component.call(this)
}

Network.prototype.render = function () {
  const props = this.props
  const context = this.context
  const networkNumber = props.network
  let providerName, providerNick
  try {
    providerName = props.provider.type
    providerNick = props.provider.nickname || ''
  } catch (e) {
    providerName = null
  }
  let iconName, hoverText

  if (networkNumber === 'loading') {
    return h('span.pointer.network-indicator', {
      style: {
        display: 'flex',
        alignItems: 'center',
        flexDirection: 'row',
      },
      onClick: (event) => this.props.onClick(event),
    }, [
      h('img', {
        title: context.t('attemptingConnect'),
        style: {
          width: '27px',
        },
        src: 'images/loading.svg',
      }),
    ])
  } else if (providerName === 'mainnet') {
    hoverText = context.t('mainnet')
    iconName = 'ethereum-network'
  } else if (providerName === 'ropsten') {
    hoverText = context.t('ropsten')
    iconName = 'ropsten-test-network'
  } else if (parseInt(networkNumber) === 3) {
    hoverText = context.t('ropsten')
    iconName = 'ropsten-test-network'
  } else if (providerName === 'kovan') {
    hoverText = context.t('kovan')
    iconName = 'kovan-test-network'
  } else if (providerName === 'rinkeby') {
    hoverText = context.t('rinkeby')
    iconName = 'rinkeby-test-network'
  } else {
    hoverText = context.t('unknownNetwork')
    iconName = 'unknown-private-network'
  }

  return (
    h('div.network-component.pointer', {
      className: classnames({
        'network-component--disabled': this.props.disabled,
        'ethereum-network': providerName === 'mainnet',
        'ropsten-test-network': providerName === 'ropsten' || parseInt(networkNumber) === 3,
        'kovan-test-network': providerName === 'kovan',
        'rinkeby-test-network': providerName === 'rinkeby',
      }),
      title: hoverText,
      onClick: (event) => {
        if (!this.props.disabled) {
          this.props.onClick(event)
        }
      },
    }, [
      (function () {
        switch (iconName) {
          case 'ethereum-network':
            return h('.network-indicator', [
              h(NetworkDropdownIcon, {
                backgroundColor: '#038789', // $blue-lagoon
                nonSelectBackgroundColor: '#15afb2',
              }),
              h('.network-name', context.t('mainnet')),
              h('i.fa.fa-chevron-down.fa-lg.network-caret'),
            ])
          case 'ropsten-test-network':
            return h('.network-indicator', [
              h(NetworkDropdownIcon, {
                backgroundColor: '#e91550', // $crimson
                nonSelectBackgroundColor: '#ec2c50',
              }),
              h('.network-name', context.t('ropsten')),
              h('i.fa.fa-chevron-down.fa-lg.network-caret'),
            ])
          case 'kovan-test-network':
            return h('.network-indicator', [
              h(NetworkDropdownIcon, {
                backgroundColor: '#690496', // $purple
                nonSelectBackgroundColor: '#b039f3',
              }),
              h('.network-name', context.t('kovan')),
              h('i.fa.fa-chevron-down.fa-lg.network-caret'),
            ])
          case 'rinkeby-test-network':
            return h('.network-indicator', [
              h(NetworkDropdownIcon, {
                backgroundColor: '#ebb33f', // $tulip-tree
                nonSelectBackgroundColor: '#ecb23e',
              }),
              h('.network-name', context.t('rinkeby')),
              h('i.fa.fa-chevron-down.fa-lg.network-caret'),
            ])
          default:
            return h('.network-indicator', [
              h('i.fa.fa-question-circle.fa-lg', {
                style: {
                  margin: '10px',
                  color: 'rgb(125, 128, 130)',
                },
              }),

              h('.network-name', providerNick || context.t('privateNetwork')),
              h('i.fa.fa-chevron-down.fa-lg.network-caret'),
            ])
        }
      })(),
    ])
  )
}
* Holger Lamm <holger@eit.uni-kl.de> * Igor Pokrovsky <ip@doom.homeunix.org> * Igor Pokrovsky <tiamat@comset.net> * Igor Pokrovsky <tiamat@telegraph.spb.ru> * Ilya A. Arhipov <admin@gorodkirov.ru> * Ilya A. Arkhipov <rum1cro@yandex.ru> * James FitzGibbon <jfitz@FreeBSD.org> * James Howard <howardj@wam.umd.edu> * Jan Jungnickel <jan@jungnickel.com> * Jan Stocker <Jan.Stocker@t-online.de> * Janni * Janos Mohacsi <janos.mohacsi@bsd.hu> * Jason Helfman <jgh@FreeBSD.org> * Jean-Marc Zucconi <jmz@FreeBSD.org> * Jean-Yves Lefort <jylefort@FreeBSD.org> * Jean-Yves Lefort <jylefort@brutele.be> * Jeremy <karlj000@unbc.ca> * Jeremy Chadwick <yoshi@parodius.com> * Jesse Smith <jessefrgsmith@yahoo.ca> * Jim Mock <jim@FreeBSD.org> * Joe Marcus Clarke <marcus@FreeBSD.org> * Joel Sutton <jsutton@bbcon.com.au> * Joel Sutton <sutton@aardvark.apana.org.au> * Jordan DeLong <fracture@allusion.net> * Jordan Irwin <antumdeluge@gmail.com> * Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> * Jose Alonso Cardenas Marquez <acm@FreeBSD.org> * Josh Tolbert * Julian Assange * Juraj Lutter <otis@sk.freebsd.org> * Kalten <kalten@gmx.at> * Karsten Brandt <kbrandt@sdf-eu.org> * Kevin Zheng <kevinz5000@gmail.com> * Kirill Ponomarew <krion@FreeBSD.org> * Kirill Ponomarew <ponomarew@oberon.net> * Klaus Goger <klaus.goger@reflex.at> * Koop Mast <kwm@FreeBSD.org> * Kris Kennaway <kris@FreeBSD.org> * Kuang-che Wu <kcwu@csie.org> * Kyle Evans <kevans@FreeBSD.org> * Lars Engels <lars.engels@0x20.net> * Lars Thegler <lars@thegler.dk> * Leland Wang <llwang@infor.org> * Loren M. Lang <lorenl@alzatex.com> * Mahdi Mokhtari <mokhi64@gmail.com> * Makoto YAMAKURA <makoto@pinpott.spnet.ne.jp> * Marc van Woerkom <3d@FreeBSD.org> * Mark Huizer <xaa+ports@timewasters.nl> * Mark Murray <markm@FreeBSD.org> * Mark Pulford <mark@kyne.com.au> * Martin Kropfinger * Martin Tournoij <carpetsmoker@xs4all.nl> * Martin Tournoij <martin@arp242.net> * Martin Wilke <miwi@FreeBSD.org> * Mateusz Piotrowski <0mp@FreeBSD.org> * Matthew Gibson <mdg583@hotmail.com> * Matthew Hunt <mph@FreeBSD.org> * Matthew Hunt <mph@pobox.com> * Max Khon <fjoe@FreeBSD.org> * Maxim Sobolev <sobomax@FreeBSD.org> * Maxime Henrion <mux@FreeBSD.org> * Michael Alyn Miller <malyn@strangeGizmo.com> * Michael Johnson <ahze@FreeBSD.org> * Michael L. Hostbaek (mich@freebsdcluster.org) * Michael Nottebrock <lofi@FreeBSD.org> * Michael Williams <ports@mgwsoftware.com> * Miguel Mendez <flynn@energyhq.es.eu.org> * Neil Blakey-Milner <nbm@FreeBSD.org> * Nick Johnson <freebsd@spatula.net> * Nicklas Johnson <freebsd@spatula.net> * Nicola Vitale <nivit@FreeBSD.org> * Nik Clayton <nik@FreeBSD.org> * Nikolai Lifanov <lifanov@mail.lifanov.com> * Oleg Alexeenkov * Oliver Lehmann <lehmann@ans-netz.de> * Patrick Li <pat@FreeBSD.org> * Patrick Li <pat@databits.net> * Pav Lucistnik <pav@FreeBSD.org> * Pawel Pekala <pawel@FreeBSD.org> * Peter Dunning * Peter Pentchev <roam@FreeBSD.org> * Philippe Audeoud <jadawin@tuxaco.net> * Pierre-Paul Lavoie <ppl@nbnet.nb.ca> * Piotr Kubaj <pkubaj@FreeBSD.org> * Piotr Kubaj <pkubaj@anongoth.pl> * Radim Kolar * Ralf Becker <ralf@akk.org> * Raymond Pasco <ray@cultofray.net> * Robert Gogolok <gogo@cs.uni-sb.de> * Rozhuk Ivan <rozhuk.im@gmail.com> * Rusmir Dusko <nemysis@FreeBSD.org> * Ryo MIYAMOTO * Sakai Hiroaki <sakai@miya.ee.kagu.sut.ac.jp> * Sakai Hiroaki <sakai@seki.ee.kagu.sut.ac.jp> * Satoshi Asami <asami@FreeBSD.org> * Sean Bruno * Sean Farley <sean-freebsd@farley.org> * Seiichirou Hiraoka * Seiichirou Hiraoka <flathill@flathill.gr.jp> * Sergey Akifyev * Shaun Amott <shaun@inerd.com> * Shinya Esu <esu@yk.rim.or.jp> * Simon Barner <barner@gmx.de> * Stas Timokhin <devel@stasyan.com> * Stas Timokhin <stast@bsdportal.ru> * Stefan Eggers <seggers@semyam.dinoco.de> * Stefan Esser <se@FreeBSD.org> * Stefan Farfeleder <e0026813@stud3.tuwien.ac.at> * Stefan Jahn <stefan.jahn@nemesis-sektor.de> * Stefan Zehl <sec@42.org> * Stephen Hurd <shurd@FreeBSD.org> * Steve Wills <swills@FreeBSD.org> * Steven H. Samorodin (samorodi@NUXI.com) * Steven Wallace <swallace@FreeBSD.org> * Sugimoto Sadahiro <ixtl@utmc.or.jp> * Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> * Sven Moeller <smoeller@nichthelfer.de> * TAKAHASHI Kaoru <kaoru@kaisei.org> * TAKATSU Tomonari <tota@FreeBSD.org> * Tatsuya Kuidoh <cdr@ga.xdsl.ne.jp> * Thomas Gellekum <tg@FreeBSD.org> * Thomas Vogt <thomas.vogt@bsdunix.ch> * Tobias Gion * Tobias Rehbein <tobias.rehbein@web.de> * Toru YANO <toru@s-fine.co.jp> * Travis Poppe <tlp@liquidx.org> * UMENO Takashi * UMENO Takashi <umeno@rr.iij4u.or.jp> * Vanilla I. Shu <vanilla@MinJe.com.TW> * Vasily Postnicov <shamaz.mazum@gmail.com> * Vladimir Kondratiev <wulf@cicgroup.ru> * Will Andrews <andrews@technologist.com> * Wouter Reckman <gennerate@zonnet.nl> * Ying-Chieh Liao <ijliao@FreeBSD.org> * Yinghong Liu <relaxbsd@gmail.com> * Yinghong.Liu <relaxbsd@gmail.com> * Yonatan <onatan@gmail.com> * Yuichi Narahara * Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp> * Yukihiro Nakai <nakai@FreeBSD.org> * Yukihiro Nakai <nakai@mlab.t.u-tokyo.ac.jp> * Yuri Victorovich <yuri@rawbw.com> * aaron@FreeBSD.org * ada@bsd.org * alepulver * arved * asami * ayu <ayunyan@gmail.com> * benlutz@datacomm.ch * buratello@easy.com * chinsan * chinsan <chinsan.tw@gmail.com> * chris_pressey@yahoo.ca * driedfruit * edwin@mavetju.org * eivind * elfrink@introcom.nl * erich@FreeBSD.org * ericyu@mail2000.com.tw * glewis@FreeBSD.org * gmarco@giovannelli.it * gurkan@phys.ethz.ch * ijliao * issei <issei@jp.FreeBSD.org> * jamie * janek * janos.mohacsi@bsd.hu * jkh * jmacd * jmz * joerg * joerg@FreeBSD.org * johans * johnh@isi.edu * jseger@scds.com * krion@FreeBSD.org * kris@FreeBSD.org * lightside <lightside@gmx.com> * loader <loader@freebsdmall.com> * marina@surferz.net * markand * markm * mdodd * mek * michael johnson <ahze@ahze.net> * minter@lunenburg.org * nbm * neuroworker@gmail.com * nox@jelal.kn-bremen.de * pat@databits.net * petef@FreeBSD.org * pgs (original) * proff * pypt * refugee * roam@FreeBSD.org * se * searle * sec@42.org * simonm@dcs.gla.ac.uk * steve farrell * swallace * thierry@pompo.net * tmartin@andrew.cmu.edu * verm@drunkmonk.net * will * xaa@stack.nl With hat: portmgr * lang/rust: Bump revisions after 1.62.0Mikael Urankar2022-07-021-1/+1 | * lang/rust: Bump revisions after 1.61.0Mikael Urankar2022-05-311-1/+1 | * lang/rust: Relink ports after the Rust 1.60.0 updateTobias Kortkamp2022-05-031-0/+1 | * games/anki: Mark as BROKEN on aarch64Kai Knoblich2022-03-301-0/+2 | | | | | | | | * Now that devel/bazel can be built on aarch64, some of Anki's Bazel rule files still need to be adjusted accordingly. This needs some time and testing thus mark it as BROKEN on aarch64 for now. MFH: 2022Q1 * games/anki: Update to 2.1.49Kai Knoblich2022-03-282-9/+8 | | | | | | | | | | | | | | | | While I'm here: * Use ECHO_CMD instead of ECHO as the latter one is already defined in /usr/share/mk/sys.mk, which can either be "echo" or "true" if the make flag -s is given. Changelog: https://github.com/ankitects/anki/releases/tag/2.1.49 PR: 262735 Reported by: Pau Amma MFH: No (2022Q2 is soon) * lang/rust: Bump revisions after 1.59.0Mikael Urankar2022-03-151-1/+1 | * devel/py-qt5, devel/py-sip: Update versionsLoïc Bartoletti2022-03-081-1/+1 | | | | | | | | | | | | - Update sip to 6.5.1 - Update PyQt5 to 5.15.6 - Update PyQtChart, PyQtNetworkAuth and PyQtWebengine to 5.15.5 - Update PyQtSip to 12.9.1 - Update PyQtBuilder to 1.12.2 - Add ${_MAKE_JOBS} for pyqt.mk (reported by Tatsuki Makino) PR: 261685 Exp-run by: antoine * lang/rust: Relink consumersTobias Kortkamp2022-02-031-1/+1 | | | | | PR: 261449 Security: ee26f513-826e-11ec-8be6-d4c9ef517024 * PyQt: Update sip to 6.5.0, reintroduce sip4 and simplify PyQt framework.Loïc Bartoletti2022-01-271-1/+1 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SIP: As mentioned in the update from sip to sip5, this is a transitional version to remove what is deprecated in sip4. Sip6 completely removes the deprecated parts. Unfortunately, some ports — mostly cura things — can not use sip6, so we reintroduce sip4. PyQt: At the same time, we took the opportunity to simplify PyQT and propose only one package as for devel/pyside2. */py-qt5-* have been merged — excepted chart, networkauth and webengine — into devel/py-qt5-pyqt. This allows us to be in adequacy with the packages that the author of these libraries proposes, namely: PyQt - devel/py-qt5-pyqt PyQt-Charts - x11-toolkits/py-qt5-chart PyQt-NetworkAuth – net/py-qt5-networkauth PyQt-WebEngine – www/py-qt5-webengine SIP – devel/py-sip py-sip - devel/py-qt5-sip PyQt-builder - devel/py-qtbuilder Qscintilla - devel/py-qt5-qscintilla2 Reviewed by: diizzy, kde Tested by: kai, rhurlin, arrowd, madpilot Approved by: makc, tcberner, kde Differential Revision: https://reviews.freebsd.org/D33237 Exp-run by: antoine * cleanup: remove transitive py27 deprecation (www/qt5-webengine)Rene Ladan2022-01-241-3/+0 | * lang/rust: Bump revisions after 1.58.0Tobias Kortkamp2022-01-171-1/+1 | * lang/rust: Rebuild consumers for Rust 1.57.0Tobias Kortkamp2021-12-051-1/+1 | * *: Rebuild for Rust 1.56.0Tobias Kortkamp2021-10-251-0/+1 | * games/anki: Chase USES=cargo's new git source supportTobias Kortkamp2021-10-251-10/+6 | | | | PR: 256581 * games/anki: Update to 2.1.48Kai Knoblich2021-09-232-14/+13 | | | | | | | | Changelog: https://github.com/ankitects/anki/releases/tag/2.1.48 MFH: 2021Q3 * *: Rebuild lang/rust consumers after the 1.55.0 updateTobias Kortkamp2021-09-191-0/+1 | * games/anki: Update to 2.1.47Kai Knoblich2021-08-312-14/+13 | | | | | | | | Changelog: https://changes.ankiweb.net/changes/2.1.40-49.html#changes-in-2147 MFH: 2021Q3 * lang/rust: Rebuild consumers for 1.54.0Mikael Urankar2021-08-281-0/+1 | * games/anki: Unbreak after 2cf2d5e3e01fdbd2Kai Knoblich2021-08-211-0/+13 | | | | | | | | | | The Bazel 4.2.0 release contains a change that handles the execution of stub Python scripts differently. [1] Remedy the issue for now by setting "stub_shebang", which was introduced with Bazel 4.2.0, accordingly instead of using its default value. [1] https://blog.bazel.build/2021/08/18/bazel-4.2.html#python * games/anki: Update to 2.1.46Kai Knoblich2021-08-1322-898/+1185 | | | | | | | | | | | | * Remove DIST_SUBDIR, which once made sense when Anki was still a pure Python port. Anki now needs a lot of Rust crates that are also used by other ports. Therefore, these crates should be placed in the usual place and not in an additional subdirectory to save bandwidth and disk space. [1] Reported by: se [1] MFH: 2021Q3 * games/anki: Update to 2.1.44Kai Knoblich2021-08-0236-1357/+1867 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the 2.1.36 release the build system has changed significantly again and devel/bazel is now used by upstream for the entire build process. With this change, a lot of bazel rules and also some translation files needs to be downloaded from various repositories during the buildtime. In order to still make Anki compatible with the Ports framework, the following approach is used: 1. Prefetch all the required files before buildtime. 2. Create and setup a few local bazel repositories along with a set of custom bazel rules and to provide Node, Protobuf and Yarn from the Ports tree. 3. Compile the Rust library and place the output files to the respective local bazel repository for further processing. 4. Build the rest via devel/bazel From a technical point of view, Anki should also be able to be built on other 64-bit architectures (but requires further patching of a few bazel rules), as soon as devel/bazel can also be built for those platforms. The option NLS is gone because the translations are now compiled directly into the Rust library and they only generate a small overhead. Changelog since 2.1.35 (too many changes/fixes to list them separately): https://changes.ankiweb.net/ Reviewed by: tcberner MFH: 2021Q3 Differential Revision: https://reviews.freebsd.org/D31358 * lang/rust: Rebuild consumers for 1.53.0Tobias Kortkamp2021-06-271-1/+1 | * games/anki: Unbreak with Rust 1.53.0Tobias Kortkamp2021-06-202-5/+5 | | | | | | | | | | | | error[E0308]: mismatched types --> cargo-crates/lexical-core-0.7.4/src/atof/algorithm/bhcomp.rs:62:24 | 62 | let bytes = bits / Limb::BITS; | ^^^^^^^^^^ expected `usize`, found `u32` error[E0277]: cannot divide `usize` by `u32` PR: 256653 * Mk: switch PYTHON_REL to 5 digits to support python 3.10.xDmitry Marakasov2021-05-251-1/+1 | | | | | | | PR: 255013 Differential Revision: https://reviews.freebsd.org/D29418 Exp-run by: antoine Approved by: wen@, no objection from python@ or portmgr@ * Rebuild lang/rust consumers after d8837418ea743776Tobias Kortkamp2021-05-121-1/+1 | * Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0 | * Rebuild lang/rust consumers after r569489Tobias Kortkamp2021-03-301-1/+1 | | | | Notes: svn path=/head/; revision=569491 * Mark ports recursively depending on Python 2.7 for expiration on June 23.Rene Ladan2021-03-241-0/+3 | | | | | | | | | | | | | | For ports optionally dependending on Python 2.7, just mark those options as expired. Remove konquerer from the x11/kde-baseapps metaport and bump its PORTREVISION. Submitted by: rene Reviewed by: portmgr, adridg, ehaupt, lme, madpilot, pizzamig, se, sunpoet, yuri Approved by: portmgr Differential Revision: https://reviews.freebsd.org/D28665 Notes: svn path=/head/; revision=569118 * games/anki: Fix packaging with Python 3.8Kai Knoblich2021-03-202-2/+13 | | | | | | | | | | | | | | * Add a workaround to make the transition from Python 3.7 to Python 3.8 possible because the name of the .so file is slightly different between the two releases. * Also add CARGO_INSTALL to avoid warnings about ignored duplicate scripts for the target "do-install". PR: 253815 Notes: svn path=/head/; revision=568854 * PyQt5: Update PyQt5 to 5.15.4 and py-qtbuilder to 1.9.1Loïc Bartoletti2021-03-161-1/+1 | | | | | | | | PR: 254218 Exp-run by: antoine Notes: svn path=/head/; revision=568547 * PyQt5: Update PyQt5 to 5.15.3, QScintilla2 to 2.12.0, py-qtbuilder to 1.9.0Loïc Bartoletti2021-03-081-1/+1 | | | | | | | | | | | | | | | | | | | | | | | | | | * PyQt5: update to 5.15.3 This is a minor feature and bug-fix release. There are corresponding releases of the other PyQt5-related packages. - Added the missing QImage.setAlphaChannel(). - Support for the QtNetworkAuth library has been moved to a separate PyQtNetworkAuth package. - Wheels no longer bundle the corresponding Qt libraries and instead automatically install them from an external wheel. * QScintilla2: update to 2.12.0 This adds support for Qt6 and removes support for Qt4. - Change the new distname (again)i due to a conflict - Use the new sip-build system * devel/py-qtbuilder: update to 1.9.0 * devel/py-sip: fix flavor for sip-distinfo PR: 253865 Exp-run by: antoine Notes: svn path=/head/; revision=567825 * lang/rust: Update to 1.50.0Mikael Urankar2021-02-141-1/+1 | | | | | | | | | | | | | | | - Use bundled libgit/libssh, the versions in ports are too old - Update lang/rust-nightly to 2021-02-12 - Update devel/racer to 2.1.41 - Import upstream patch to fix build issue for Firefox and related ports (https://bugzilla.mozilla.org/show_bug.cgi?id=1684261) Changes: https://github.com/rust-lang/rust/releases/tag/1.50.0 Tested by: mikael, pkubaj Differential Revision: https://reviews.freebsd.org/D28616 Notes: svn path=/head/; revision=565245 * lang/rust: Update to 1.49.0Mikael Urankar2021-01-061-1/+1 | | | | | | | | | | Changes: https://github.com/rust-lang/rust/releases/tag/1.49.0 Tested by: mikael, pkubaj Differential Revision: https://reviews.freebsd.org/D27940 Notes: svn path=/head/; revision=560492 * Update PyQt5 to 5.15.2, sip to 5.5.0, py-qtbuilder to 1.6.0 and py-qt5-sip ↵Loïc Bartoletti2020-12-161-1/+1 | | | | | | | | | | to 12.8.1 PR: 251764 Exp-run by: antoine Notes: svn path=/head/; revision=558168 * games/anki: Remove pkg-messageKai Knoblich2020-12-042-16/+1 | | | | | | | | | | | * The installation instructions on how to set up audio/lame manually are obsolete since r554970 thus remove them. * Bump PORTREVISION to flush out old packages that still contain the pkg-message. Notes: svn path=/head/; revision=556966 * lang/rust: Update to 1.48.0Mikael Urankar2020-11-241-0/+1 | | | | | | | | | | | Changes: https://github.com/rust-lang/rust/releases/tag/1.48.0 Reviewed by: jbeich Tested by: bdragon, jbeich, mikael Differential Revision: https://reviews.freebsd.org/D27293 Notes: svn path=/head/; revision=556157 * Add education virtual categoryAdam Weinberger2020-11-201-1/+1 | | | | | | | | PR: 248402 Submitted by: PauAmma Notes: svn path=/head/; revision=555738 * games/anki: Update to 2.1.35Kai Knoblich2020-11-1013-612/+1549 | | | | | | | | | | | | | | | | | | | | Since the 2.1.17 release the build system has been significantly revised and contains many changes (e.g. a Rust library with Python bindings) that had to be adapted to the Ports framework. Kudos to David Schlachter for the additional testing and feedback! Changelog since 2.1.16 (too many changes to list them separately): https://changes.ankiweb.net/ PR: 247666 Reported by: David Schlachter Reviewed by: tcberner (earlier revision) Differential Revision: https://reviews.freebsd.org/D26961 Notes: svn path=/head/; revision=554834 * Update PyQt to 5.15.0, py-sip to 4.19.24 and qscintilla2 to 2.11.5Loïc Bartoletti2020-10-051-1/+1 | | | | | | | | | | | | | | | | | | | - Update PyQt to 5.15.0, py-sip to 4.19.24 and qscintilla2 to 2.11.5 - Use pypi for PYQT [1] - Add devel/py-qt5-sip (Don't use it for now. It will be used in future updates of PyQt with py-sip >= 5) - Add missing py-qt5 ports: comms/py-qt5-sensors, devel/py-qt5-location, devel/py-qt5-remoteobjects, net/py-qt5-networkauth - Strip libs - Refactor *_PATH and *_PORT parts [1] RiverBankComputing doesn't offer links to download latest version of some ports PR: 247369 Reviewed by: tcberner Differential Revision: https://reviews.freebsd.org/D25749 Exp-run by: antoine Notes: svn path=/head/; revision=551499 * Update py-sip to 4.19.21 and qscintilla2 to 2.11.4Loïc Bartoletti2020-04-111-0/+1 | | | | | | | | | | | | | | - Update py-sip to 4.19.21 - Update qscintilla2 to 2.11.4 - Replace MASTER_SITE_RIVERBANK with https versions - Replace QSCI2_DISTNAME to match with the new one PR: 245308 Approved by: tcberner (mentor) Exp-run by: antoine Notes: svn path=/head/; revision=531396 * games/anki: Update to 2.1.16Kai Knoblich2020-02-195-71/+90 | | | | | | | | | | | | | | | | | | | | | | * Backport two patches from upstream that fix the argument handling with multimedia/mpv since r520597. * Also slightly change the MASTER_SITES as upstream distribute tarballs for newer versions only via GitHub. Although there are already some newer releases available use the 2.1.16 release for a while. It's mainly because the build process has changed a lot since the 2.1.17 release and still needs to be investigated a little more closely. Changelog: https://apps.ankiweb.net/docs/changes.html#changes-in-2.1.16 MFH: 2020Q1 (blanket: bug and regression fixes) Notes: svn path=/head/; revision=526491 * games/anki: Add pkg-message with installation instructionsKai Knoblich2019-12-122-0/+16 | | | | | | | | | | | | | | | * Improve the user experience by adding a pkg-message which gives some advice that audio/lame needs to be installed manually afterwards when installing from the official FreeBSD package repositories. * Bump PORTREVISION to include the pkg-message. PR: 242528 Submitted by: PauAmma <pauamma@gundo.com> (based on) MFH: 2019Q4 Notes: svn path=/head/; revision=519830 * games/anki: Update to 2.1.15Kai Knoblich2019-08-252-4/+4 | | | | | | | | | | | | | | | | | | Changelog: * The V2 scheduler now fully randomizes review cards due on a given day. * Fix flag changes in Browse screen not syncing. * Cleanup recording wav file when recording canceled. * Fix the window icon on Wayland. * Add a progress bar to media deletion. * Other minor changes. https://apps.ankiweb.net/docs/changes.html#changes-in-2.1.15 MFH: 2019Q3 Notes: svn path=/head/; revision=509787 * games/anki: Update to 2.1.14Kai Knoblich2019-06-292-4/+4 | | | | | | | | | | | | | | | | | | Changelog: * Fix a bug in the V2 scheduler that would cause partially learnt cards removed from filtered decks to revert to an earlier state. * Fix a bug in the handling of relearning cards when switching back to the V1 scheduler. * Fix lost space when pasting indented text. * Limit image height relative to window height, not document height. * Fix deck list being re-rendered unnecessarily. * Remove the unable to connect to local port message. https://apps.ankiweb.net/docs/changes.html#changes-in-2.1.14 Notes: svn path=/head/; revision=505346 * games/anki: Update to 2.1.13Kai Knoblich2019-05-222-4/+6 | | | | | | | | | | | | | | | | | | | | | | | | | | Changelog: * Fix formatting getting lost when copying&pasting between fields on macOS. * Fix some issues that cause the main window to get stuck. * Fix an empty deck list sometimes appearing when restoring from a backup. * Fix Anki hanging after an error occurs during startup. * Fix error message when syncing with an unconfirmed email address. * Use jsonschema for add-on manifests * Warn in DB check when high due numbers are encountered. * Improve error messages on full disk and failed add-on deletion. * Fix relearning cards being given learning step count in V2 scheduler. * Fix preview window failing to appear when show both sides enabled. * Removing trailing BR tag when pasting into an empty field. * Don’t throw an error when non-Latin text in the Javascript console can’t be shown. * Double click on add-ons to edit their configuration. * Fix the window icon in a few screens. * Improve the default type in the answer note type. https://apps.ankiweb.net/docs/changes.html#changes-in-2.1.13-(3ba55990) Notes: svn path=/head/; revision=502256 * games/anki: Update to 2.1.12Kai Knoblich2019-04-302-4/+4 | | | | | | | | | | | | | | | | | | | | | | | Changelog: * Fix fields appearing under editor buttons. * Fix memory leak in card layout screen. * Fix some issues with previewing in the Browse screen. * Fix card counts not updating when a review is undone. * Fix an error caused by missing note types. * Fix an issue checking for add-on updates. * Disable add-on config button when not appropriate. * Tweaks to the deck age graph binning. * Add-ons hosted on AnkiWeb can now define conflicts in the manifest file. * Make sure mpv doesn’t attempt to load scripts from default location. * Other minor fixes. https://apps.ankiweb.net/docs/changes.html#changes-in-2.1.12-(eef86bf3) Approved by: mentors (implicit) Notes: svn path=/head/; revision=500437 * Clean up plistAntoine Brodin2019-04-251-246/+246 | | | | Notes: svn path=/head/; revision=500005 * games/anki: UnbreakKai Knoblich2019-03-302-3/+9 | | | | | | | | | | | | | Unbreak since www/py-qt5-webengine is usable again since r497003. Also update the patch for aqt/qt.py to load PyQt5.QtWebChannel explicitly. Otherwise Anki will crash upon invocation. PR: 233192 Approved by: mentors (implicit) Notes: svn path=/head/; revision=497168 * games/anki: Update to 2.1.11, undeprecate and set to BROKENKai Knoblich2019-03-14