1589 Commits
Author SHA1 Message Date
Berdason Badel a95a72fcc3 Fix #3699: powerbox dialog: allow long URLs to wrap instead of truncating 2026-06-03 15:31:54 -05:00
Ian Denhardt ae62d09e37 Drop .js/.ts suffixes in imports.
...with the singular exception of intro.js, where it's part of the
package name, not a file extension.

This is mostly to fix an issue where typescript doesn't want you to
import files with a .ts extension (it will accept .js, but that's super
weird if the file doesn't actually have that extension, and when I tried
it it broke the build for Kenton). Changing the import of .js files is
mainly for consistency.

This also changes some imports to use double quotes (") instead of
single quotes ('); I noticed these while searching for import sites to
replace.
2022-06-11 20:31:47 -04:00
Jacob Weisz 4abc54bf66 Remove styling for deleted sections 2022-06-05 14:22:07 -05:00
Ian Denhardt 30a4e7455e Better symmetry between icon & close button on mobile.
...and center both of them better.
2021-12-01 17:52:33 -05:00
Ian Denhardt 3c9d72704d Make the grain close button bigger on mobile.
...Filling the entire vertical space alotted for it.

I have found this difficult to press at its current size on mobile; this
essentially doubles the size, so it should be better.

Aesthetically it would be nice to also enlarge the grain icon for
symmetry, but just applying the same rule ends up with it overflowing
the bounds significantly. I am trying to resist the temptation to redo
this whole section with flexbox & grid.
2021-12-01 17:39:05 -05:00
Ian Denhardt 0e127c9092 Style the 'return to grain' button. 2021-05-06 17:57:16 -04:00
Ian Denhardt 7cee05cb26 Handle table header hovers per-header.
...rather than the whole row.
2021-05-02 21:53:20 -04:00
Ian Denhardt 95596bc0b0 Add some styling to the grain settings.
This vaguely looks like sandstorm now, but still needs some work.
2021-05-02 21:28:46 -04:00
Ian Denhardt 72a3fe03b6 Add a "grain settings" panel.
This will serve as a place to store grain-specific settings and other
grain-specific information.

Right now it is *very* bare bones, just shows scheduled jobs, and is
ugly as sin.

Still TODO:

* i18n.
* Make it presentable.
* Add other useful stuff.
2021-05-02 15:07:31 -04:00
Robert Schmid 73b9d97e77 Add icon for OpenID login provider 2020-10-19 12:21:59 +02:00
Ian Denhardt f8d2bde65b Merge remote-tracking branch 'origin/master' into clone-grain 2020-07-04 14:06:16 -04:00
Kenton Varda 4dd69c1407 Merge pull request #3363 from sandstorm-io/bigger-changelog-box
Larger changelog box on about
2020-06-27 19:43:05 -05:00
Ian Denhardt b1a2b97078 Use 'copy.svg' as an icon for the clone grain button.
Doesn't quite work as expected; unlike the other icons, whatever we're
doing in the build to change the colors for dark backgrounds isn't
working for this icon, presumably because it doesn't appear to have the
2020-06-25 23:18:29 -04:00
Jacob Weisz 5d14a40bea Larger changelog box on about 2020-06-08 15:39:33 -05:00
spollard fe00102678 Adjusted scrolling on topbar and navbar
Adjusted scrolling on topbar and navbar and fixed grain title to the top of the menu on mobile. 

Here are the intended changes in pure css:

@media (min-width: 901px) {
body > .topbar > .navbar {
overflow-y: auto;
}
}

@media (max-width: 900px) {
body > .topbar.expanded {
    overflow-y: auto;
}

body > .topbar > .menubar > .title {
position: fixed;
z-index: 1; /* above the rest of the menu */
}
body > .topbar > .menubar > .notifications {
z-index: 3; /* above the title and rest of menu */
}
.share {
margin-top: 48px; /* height of fixed title */
}
}
2020-06-08 12:34:04 -06:00
spollard d9676eabed Allow scrolling the navbar
When there are many grains open on desktop or just a few grains open on Firefox on Android, the user needs to be able to scroll the navbar menu down to see them. These changes should allow that without breaking anything else. It was a little difficult to trace all the curly brackets for scss, but here are the intended changes:

@media (max-width: 900px) {
    body > .topbar {
        overflow: hidden; /* REMOVE THIS */
        overflow: scroll; /* ADD THIS */
    }
}
@media (min-width: 901px) {
     body > .topbar > .navbar {
        overflow: scroll; /* ADD THIS */
    }
}
2020-06-01 15:54:59 -06:00
Kenton Varda 8b6b7d9b74 REALLY BAD Admin UI for TLS certificate management.
I'm absolutely terrible at UI code, but this works. It lets you:

- Manually upload certs.
- Configure Let's Encrypt (or any other ACME cert provider).
- Configure a variety of DNS plugins by typing in raw freeking JSON.
2020-05-02 12:52:56 -05:00
Ian Denhardt 63ac218d42 Split shared/testing into separate client/server modules.
This also gets rid of a conditional import.
2020-04-26 01:00:13 -04:00
Ian Denhardt fc0d5876b3 Delete unneeded side-effecting import.
Per @zarvox's request.
2020-04-21 22:33:17 -04:00
Drew Fisher cf15fdfcb9 Hoist the only other side-effect-ful imports up into main.js
Looks like we'd previously extracted db-deprecated.js.  Let's keep things
simple during this migration and have main.js be the only file that does
imports purely for side-effects.
2020-03-23 00:53:26 -07:00
Drew Fisher 786c2f34df Move sandstorm-identicons to full import/export structure 2020-03-23 00:21:43 -07:00
Ian Denhardt ceafc40a2d Remove unnecessary import. 2020-03-22 22:59:18 -04:00
Ian Denhardt a6380ec9d3 Add a tsconfig.json, make typescript happy.
Apparently the meteor typescript plugin doesn't actually do any
*checking* with typescript -- all it does is translate .ts files
into .js files so that the build works.

This patch adds a tsconfig.json and has the `lint` task run tsc
as well (with noEmit: true, so we're just doing the checking, letting
meteor take care of the translation).

The config is borrowed from the output of `meteor create --typescript`.

After adding this and running tsc, typescript complained about two
things:

1. `Crytpo = Npm.require('crypto')` in various parts of the server,
   overwriting the built-in `Crypto` global that is available in the
   browser.
2. The unused `Template` import in `client/main.ts`.

Unfortunately, the config format's "lib" option doesn't allow us to
specify different values for different subdirectories, so it thinks
the DOM apis are available everywhere. To solve (1) we just replaced
these statements with a proper import:

    import Crypto from 'crypto';

To solve (2), we add the Template import to the modules that actually
use it, and remove the variable from `client/main.ts`. We keep the
import of that module in place, so as not to disturb import order,
though I'm not sure it matters in this case, maybe we can remove it
entirely.
2020-03-22 22:58:35 -04:00
Ian Denhardt ad7c446783 Move the client main over to typescript too. 2020-02-22 21:47:10 -05:00
Ian Denhardt 0d65451dde Merge remote-tracking branch 'origin/master' into pwa 2020-02-22 13:46:20 -05:00
Drew Fisher 6afc4b13ee Move <head> and <body> back out to client/
Imported blaze templates don't appear to propagate <head> correctly, for
whatever reason.  So ignore it and accept that we have one template not in
imports for <head> and <body>.
2020-02-19 23:48:41 -08:00
Drew Fisher b280dabaf7 Fix client import order
Turns out we do in fact have a dependency between the two files in that
package.
2020-02-19 09:29:48 -08:00
Drew Fisher 7c98c5ff16 Rename client and server entry points to main.js 2020-02-18 23:26:29 -08:00
Drew Fisher a6fc320ae8 Lift sandstorm-identicons out of packages into imports/ 2020-02-18 23:24:33 -08:00
Drew Fisher faa36d878c Lift sandstorm-db out from packages into imports/
This appeared to have a dependency on a particular version of the
content-type package from npm.  We can sort that out separately.

Additionally, this has a Meteor package dependency on
fongandrew:find-and-modify.  I pinned the version because I vaguely recall this
particular library breaking in the past when we tried to update it and don't
want to deal with that right now either.
2020-02-18 23:13:14 -08:00
Drew Fisher 8e09734c1b Lift sandstorm-accounts-packages from package to imports/
This is probably a good candidate for reworking later -- rethinking
how we expose loginServices on client and server seems pretty reasonable
given how little logic the two actually appear to share.
2020-02-18 22:46:53 -08:00
Drew Fisher d66ddbee7b Lift sandstorm-ui-topbar from package to imports/ 2020-02-18 09:17:58 -08:00
Drew Fisher c10f917963 Lift sandstorm-ui-powerbox Meteor package into imports 2020-02-18 00:48:56 -08:00
Drew Fisher d378649185 Lift blackrock-payments Meteor package into imports
To get the remaining packages into imports, we need to hoist them up in the
reverse order they are loaded.  `blackrock-payments` is a leaf in that
dependency tree; let's lift that one first.

We move Blackrock's Stripe dependency into sandstorm's top-level package.json.
We should be able to swap out Npm.require() for plain old imports.

The two asset files are placed in private/, per the Meteor Guide.
2020-02-18 00:36:00 -08:00
Drew Fisher 85419c9e8e Move shared/ into imports/ 2020-02-18 00:15:51 -08:00
Drew Fisher b220fb4018 Move all of client/ into /imports/client 2020-02-17 23:52:13 -08:00
Drew Fisher 3467d735f8 Move all templates to imports/ 2020-02-17 23:50:49 -08:00
Ian Denhardt aba06526ec Support "add to home screen" on mobile browsers.
With this patch, sandstorm now supports "add to home screen" on modern
mobile browsers:

    https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Add_to_home_screen

Notes:

* The new file `/public/sandstorm-gradient-logo.png` is the same image
  as the corresponding `.svg`; At least Chrome requires images larger
  than the small `icon32.png` we have, and doesn't support `.svg`.
* The service worker doesn't do anything right now; it's just
  there because some browsers demand it to allow add to home screen.
  At some point we could use this to cache static assets.
2020-02-15 15:35:01 -05:00
Lauri Ojansivu df78bff886 Add html rendering for <strong></strong> with more curly braces. Works. 2020-02-10 18:29:48 +02:00
Lauri Ojansivu 7ce879676c Change translation string concatenation to use parameters instead.
Remove <strong></strong> emphasis because it did not work.
2020-02-09 23:23:11 +02:00
Lauri Ojansivu 7773600198 Add back translations transfers grouping. Combine long string. 2020-01-14 18:18:08 +02:00
Lauri Ojansivu d66fb4a841 Fix translations. 2020-01-14 15:30:02 +02:00
Lauri Ojansivu 5c92485bf8 Fix typo. 2020-01-12 23:00:07 +02:00
Lauri Ojansivu 2d714737c1 Mass Transfer to translateable, and translate to Finnish. 2019-12-22 00:36:13 +02:00
Kenton Varda ee23b25bb2 Merge branch 'master' of github.com:sandstorm-io/sandstorm 2019-09-28 16:38:55 -07:00
Kenton Varda eb106c1482 Add warnings that Oasis is shutting down in UI and invoice e-mails. 2019-09-28 15:58:39 -07:00
orblivion 015b9b82f9 Typo in Mass Transfer page
s/cat perform/can perform
2019-09-15 19:13:07 -04:00
Kenton Varda 979a99fc11 Implement Mass Transfers.
This makes it easy to mass-transfer grains to another Sandstorm server. A UI lets you choose which grains to transfer, watch the transfer happen, and check and retry any errors.
2019-09-02 12:13:00 -07:00
Jacob Weisz 81e9323d90 Typo fix in admin panel i18n
Fixes #3115
2019-02-01 13:10:47 -06:00
Kenton Varda 8c2818dd65 Extend 'quota exceeded' error to link to blog post with more details. 2018-10-20 09:30:22 -07:00