1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-29 06:23:17 +03:00
Commit Graph

1111 Commits

Author SHA1 Message Date
avele
38725ca37c
Cmd enter handling (#393) 2019-09-02 21:55:55 +04:00
Avele
c9d512cb08 Markdown editor code highlightning restored to defaults; fixes #352 #359 2019-09-02 21:53:26 +04:00
Avele
d69ce310d1 Saving on enter in category settings dialog 2019-08-31 21:44:12 +04:00
Avele
a9bb032df2 Changed v-list items component according to new vuetify api 2019-08-31 16:19:41 +04:00
Avele
b9ba94cfce Changed code elements styles; fixes #358 2019-08-31 16:11:41 +04:00
Avele
94d62848a3 Disabled stripping of "www" for category item links; fixes #372 2019-08-30 15:04:49 +04:00
Avele
6ef202f50f Category item toolbar anchor color changed; fixes #361 2019-08-30 14:56:49 +04:00
Avele
ea8f29b970 Markdown editor toolbar icons positioned correctly; fixes #360 2019-08-30 14:51:02 +04:00
Avele
c241821a98 Ripple disabled for category item toolbar button; fixes #357 2019-08-30 14:39:55 +04:00
Avele
96293c8e92 Category page 404 2019-08-30 14:28:30 +04:00
Avele
ce60d3a450 Fixed item title displaying stuck letters; fixes #362 2019-08-30 14:22:59 +04:00
Avele
f6c05aa37f Fallback to 404 if category not found; fixes #353 2019-08-29 19:43:47 +04:00
Artyom Kazak
6b7d36d1ad Remove unused imports 2019-08-29 12:07:07 +03:00
Artyom Kazak
6d5c0352d2 Add .ghci 2019-08-26 09:35:53 +03:00
Artyom Kazak
101d8ba04a Move Uid into a separate module (#388) 2019-08-23 13:27:21 +00:00
Artyom Kazak
ea604a4155 Style 2019-08-23 11:37:40 +03:00
Vladislav Sabanov
e371f8d129 Load into postgres and check it. (#383)
* Insert all categories from Acid to Postgres

* Check postgres == acidstate

* Fix schema

* Redo the way undocumented definitions are counted (#381)

* Redo the way undocumented definitions are counted

* Fix YAML

* Fix a typo

* Generate swagger.json for branches (#380)

* Generate swagger.json for branches

* Fix

* Fix again

* Fix once more

* [skip ci] Regenerate swagger.json

* Don't log debug info to stdout

* Push even if the branch is ahead

* Fix

* Empty

* [skip ci] Regenerate swagger.json

* Don't use "skip ci"

* Enable all unobjectionable extensions (#384)

* Enable OverloadedStrings by default

* Remove pragmas for default extensions

* Enable some other extensions

* Enable TemplateHaskell

* Add logger

* Update cli

* Fix orders updater

* Cut UTC off. Precision 12 -> 9

* Delete item (trait) from category (item) if it marked 'deleted'
And add item (trait) to category (item) if it not marked 'deleted'

* Remove pragmas

* Update makefile, and check untill True with remote base

* Add check equality in travis

* Fix travis: wait for postgres

* Fix travis. Use native service

* Fix redirection

* Fix condition

* Make checks simple

* Refactor on comments. Everything but the last one.
Dumb or not dumb is still the question. (Concerning queries)
2019-08-23 07:49:44 +00:00
Artyom Kazak
c1b9780bc9 Add Named to Imports.hs (#387) 2019-08-22 10:24:23 +00:00
Artyom Kazak
0e86f61494 Fix acid-state loading (#386)
* Die when the state could not be loaded

* Fix database loading

* Don't throw exitSuccess
2019-08-21 03:41:57 +00:00
Artyom Kazak
0c50de646b Enable all unobjectionable extensions (#384)
* Enable OverloadedStrings by default

* Remove pragmas for default extensions

* Enable some other extensions

* Enable TemplateHaskell
2019-08-20 04:40:28 +00:00
Artyom Kazak
ce62066598
Generate swagger.json for branches (#380)
* Generate swagger.json for branches

* Fix

* Fix again

* Fix once more

* [skip ci] Regenerate swagger.json

* Don't log debug info to stdout

* Push even if the branch is ahead

* Fix

* Empty

* [skip ci] Regenerate swagger.json

* Don't use "skip ci"
2019-08-19 17:58:24 +03:00
Artyom Kazak
a100905cbf Redo the way undocumented definitions are counted (#381)
* Redo the way undocumented definitions are counted

* Fix YAML

* Fix a typo
2019-08-19 12:35:34 +00:00
Artyom Kazak
0d170b3e30 Migrate to to-1.2.0 (#382)
* Migrate to to-1.1.0

* Migrate to to-1.2.0
2019-08-19 10:41:34 +00:00
Artyom Kazak
29a2fb718c Fix Postgres TODOs (#379)
* Use $(fields) in Guide.Database.Queries.Select

* Checking schema hash is hard and not really necessary

* Explain why we store deleted objects
2019-08-18 12:41:46 +00:00
Artyom Kazak
c1c815b3ce Reorganize queries (#378)
* Reorganize queries

* Hlint
2019-08-18 07:47:50 +00:00
Artyom Kazak
b5e2bb4d99 Migrate to hpack (#377)
* Migrate to hpack

* Small fixes to hpack

* Remove exposed modules

* Get rid of a warning

* Unify default-extensions

* exposed-modules
2019-08-17 15:25:31 +00:00
Vladislav Sabanov
8c5cec5aad Add CLI (#376)
* Add CLI

* fix makefile

* Add comments

* Update back/src/Guide/Cli.hs

Co-Authored-By: Artyom Kazak <artyom@aelve.com>

* Update back/src/Guide/Cli.hs

Co-Authored-By: Artyom Kazak <artyom@aelve.com>

* Refactor on review

* Fix tests

* Rename some functions, add comments, minor formatting
2019-08-17 12:38:07 +00:00
Artyom Kazak
ee8a6e551c Don't use explicit imports for Guide.Types.Core (#375) 2019-08-14 19:42:26 +00:00
Vladislav Sabanov
156d794991 Add deleted field to category (#373)
* Add deleted field to category

* fix forgotten
2019-08-14 16:37:42 +00:00
Artyom Kazak
83f77c9309 Move 'To' out of Guide (#371)
* Move 'To' out

* Fix compilation errors
2019-08-13 18:56:52 +00:00
Artyom Kazak
ec49dad1be Implement and use hasql classes (#370)
* Implement hasql classes and generic machinery

* Add support for lists and sets

* Export ToPostgres and FromPostgres

* Add instances for one-tuples (Identity)

* Add instances for types from Guide.Types.Core

* Migrate Guide.Database.Set

* Migrate Guide.Database.Add

* Migrate Guide.Database.Get

* Remove Guide.Database.Convert

* Split makeStatement into makeStatement and makePreparedStatement

* Add helper functions

* Migrate Guide.Database.Schema

* Fix HLint

* Rename

* Use SingleRow and SingleColumn

* Use quasiquoters

* Documentation

* More documentation

* Make makeStatement a pure wrapper

* Slightly more docs

* Write about prepared queries

* s/queryRow/queryRowMaybe/

* s to sql

* Improve docs
2019-08-13 17:54:10 +00:00
Artyom Kazak
285dd6b7f3 Don't use 'show' on Markdown (#368) 2019-08-11 14:06:02 +00:00
Artyom Kazak
c4051a9285 Remove mentions of EKG 2019-08-11 16:01:37 +03:00
Artyom Kazak
b4f339cf0c Remove EKG and unused dependencies (found via 'weeder') (#366)
* Remove EKG

* Remove unused dependencies, found via 'weeder'
2019-08-11 12:59:42 +00:00
Artyom Kazak
94e0939d7b Make HLint usable (#367)
* Apply Hlint's suggestions and suppress others

* Add hints about qualified imports and CPP
2019-08-11 12:57:49 +00:00
Artyom Kazak
612266fe6d [mergify] Delete merged branches 2019-08-11 13:23:31 +03:00
Artyom Kazak
bd51f87bed Cleanup the way we work with record fields (#365)
* Use 'fields' where appropriate

* Don't use makeFields

* Rename fields of Config

* Don't use makeFields for Markdown types
2019-08-11 10:19:39 +00:00
Vladislav Sabanov
c259052b6d Remove temp tests (#364) 2019-08-10 13:38:33 +00:00
Vladislav Sabanov
593cb30fc5
Add insert/update transactions (#355)
* add insert transactions

* Fix Add, Add Set[wip], Test them

* Set function is completed and delete one also

* Add moveItem

* Add moveTrait

* Use ItemRow (#356)

* fix travis

* make corrections to the comments

* Add rest row types

* prettify

* Update back/src/Guide/Database/Set.hs

Co-Authored-By: Artyom Kazak <artyom@aelve.com>

* Add row types to get functions. Make ttype convertions

* Formatting

* Use 'do' for constructing rows

* Rename "column" to "columns"

* Fix an article

* Fix boolean capitalization

* Fix Haddock

* Rename TraitType constructors

* Fix sql query

* Fix select in schema

* Reexport more modules from Guide.Database

* Name the #created UTCTime arg

* Restore consistency

* Expand _order comments

* Rename mismatched row fields

* Add lenses for rows

* Replace set functions with 'modifyCategoryRow' and so on

* Document 'exposeFields' and 'exposeFieldsPrefixed'

* Rename exposeFields

* Improve logging in 'setupDatabase'

* Abstract 'makeLensesWith' to Utils module

* Less default parameters in 'addCategory'

* Rewrite docs for makeClassWithLenses
2019-08-10 17:13:40 +05:00
Artyom Kazak
084c202b34 Add automatic PR merging 2019-08-10 14:51:34 +03:00
Avele
2096ae87ab Link to the license updated; fixes #350 2019-08-03 08:48:56 +04:00
Avele
d0f81d24a9 Fix markdown editor header icons; fixes #349 2019-08-03 08:43:05 +04:00
Avele
c826ecef2f Restyled blockquote element margins and paddings; fixed #354 2019-08-03 08:17:27 +04:00
avele
9e4146b5bc
Front/chore/migrate to vuetify 2.0 (#348)
* Vuetify updated

* Correct component creation in dialog mixins

* Vuetify 2.0 migration

* Conflict dialog content style fixed

* Removed duplicate attribute
2019-08-03 06:18:26 +04:00
Artyom Kazak
41c3523323
Remove item groups (#347) 2019-07-26 20:00:22 +03:00
Artyom Kazak
f830c7dc70
Remove outdated info from README 2019-07-26 19:38:15 +03:00
Artyom Kazak
10b50a2451
Remove -XTemplateHaskell from default extensions (#346) 2019-07-25 19:55:12 +03:00
Vladislav Sabanov
36a92f9bf7 Add get functions for categories, traits and items (#339) 2019-07-25 15:17:29 +03:00
Artyom Kazak
9f8f0a2262 Fix case one-liner breaking Ormolu 2019-07-25 15:13:54 +03:00
avele
c8039b898b
Front/fix/popup dialog issues (#344)
* getCategoryUrl function moved to external file

* Consistent pop-up dialogs look and behavior
2019-07-24 23:38:47 +04:00