Skip to content
This repository was archived by the owner on Oct 1, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
b5499fd
Merge pull request #5 from pulse-framework/master
Pckool Aug 21, 2020
0b74b8e
Merge pull request #6 from pulse-framework/master
Pckool Sep 27, 2020
aeb1bdc
Fix for collect not always adding data to default
Pckool Oct 6, 2020
3df2de6
Vue work
Pckool Oct 6, 2020
6e18374
Matchup with pulse repo
Pckool Oct 6, 2020
8f8337d
Merge branch 'develop' of https://github.com/pulse-framework/pulse in…
Pckool Oct 6, 2020
16baadf
various fixes
Pckool Dec 1, 2020
6824ee4
updated pulse package.json
Pckool Dec 1, 2020
08bfbca
Merge pull request #9 from pulse-framework/develop
Pckool Dec 1, 2020
328c3c6
pulse 4
jamiepine May 19, 2021
4305858
progress (does not run yet)
jamiepine May 19, 2021
0d7de9b
progress towards epicness
jamiepine May 19, 2021
c05f73e
it runs
jamiepine May 19, 2021
c58b6fe
moved some example code around
jamiepine May 19, 2021
98b201e
removed comments
jamiepine May 19, 2021
216eddd
removed more comments
jamiepine May 19, 2021
7103d9b
formatting
jamiepine May 19, 2021
7cae334
more formatting
jamiepine May 19, 2021
cf4ba4b
final format
jamiepine May 19, 2021
85b390d
pulse 4 is stable
jamiepine May 20, 2021
7851c1b
pulse 4 docs
jamiepine May 20, 2021
0bc114d
docs and code cleanup
jamiepine May 20, 2021
3400c36
dark theme
jamiepine May 20, 2021
cb7f462
style
jamiepine May 20, 2021
beeb338
docs
jamiepine May 20, 2021
ee5a89f
docs
jamiepine May 20, 2021
9af492a
v4.0.0-beta.0
itsRems May 26, 2021
0ce9bbc
create selector
jamiepine Jun 3, 2021
42615a2
createSelector
jamiepine Jun 3, 2021
6963898
Merge branch 'develop' of github.com:pulse-framework/pulse into develop
jamiepine Jun 3, 2021
81ba631
remove old tests
itsRems Jun 3, 2021
37e25d0
v4.0.0-beta.1
itsRems Jun 3, 2021
2e97cba
fix deps versions
itsRems Jun 5, 2021
78b254d
v4.0.0-beta.2
itsRems Jun 5, 2021
1d4cf6b
v4.0.0-beta.3
itsRems Jun 5, 2021
26db28c
fix tracking on group.remove
itsRems Aug 6, 2021
4caed20
v4.0.0-beta.4
itsRems Aug 6, 2021
2e981a1
Merge branch 'develop' of https://github.com/pulse-framework/pulse in…
Pckool Aug 12, 2021
7d6af77
Merge branch 'pulse-framework-develop' into develop
Pckool Aug 12, 2021
e7f7f45
Fixed the route function
Pckool Aug 12, 2021
243b07e
Fixed actions modifiers causing a crash
Pckool Aug 15, 2021
38d8f8e
Fixed the type mismatch in pulse-vue
Pckool Aug 15, 2021
eceac32
Updated required packaged json for packages
Pckool Aug 15, 2021
cd4b846
Fixed actions throwing scoping errors
Pckool Aug 17, 2021
1d74e9a
Minor edits to the route function
Pckool Aug 17, 2021
2c8d3cc
removed some dev logs
Pckool Aug 17, 2021
b30a019
Created a seprate function for sync actions
Pckool Aug 18, 2021
3ba1988
Merge branch 'Pckool-develop' into develop
itsRems Aug 18, 2021
6b540e7
v4.0.0
itsRems Aug 18, 2021
823ba24
Merge branch 'develop' into develop
itsRems Aug 18, 2021
cfed75f
Merge pull request #190 from Pckool/develop
itsRems Aug 18, 2021
abf8e9a
some v4 docs
itsRems Aug 18, 2021
bad4f1f
Merge pull request #11 from pulse-framework/develop
Pckool Aug 19, 2021
a656722
Fix for get method on route function
Pckool Aug 21, 2021
5f718ab
Updated route docs
Pckool Aug 21, 2021
b8da0b7
Fixed configuration for new route docs
Pckool Aug 21, 2021
33a0e2f
Started working on actions docs
Pckool Aug 21, 2021
6546669
Another slight modification to route function (now includes timeout)
Pckool Aug 21, 2021
ccc1b1e
Merge pull request #191 from Pckool/develop
itsRems Aug 23, 2021
e8036ce
v4.0.1
itsRems Aug 23, 2021
b946911
add collection to instance on creation
itsRems Sep 3, 2021
34f6f30
v4.0.2
itsRems Sep 3, 2021
19794b6
it ain't good, but it works.
itsRems Sep 3, 2021
a707239
v4.0.3
itsRems Sep 3, 2021
11ec409
tempfix collection loader
itsRems Sep 3, 2021
709e1c7
v4.0.4
itsRems Sep 3, 2021
77d37f0
fixed ssr/integrations
itsRems Sep 6, 2021
745371d
v4.0.5
itsRems Sep 6, 2021
dcb2ae2
avoid duplicate state/collections in the instance (fixes SSR problems)
itsRems Sep 7, 2021
49fcde0
v4.0.6
itsRems Sep 7, 2021
7de61c3
moar bs fixes
itsRems Sep 7, 2021
2ee319f
v4.0.7
itsRems Sep 7, 2021
2f708a8
improvements on nextjs integration
itsRems Sep 9, 2021
3d0cf87
v4.0.8
itsRems Sep 9, 2021
b602515
Master repo version update
Pckool Sep 13, 2021
d18c1e4
fix for typo in state page
Pckool Sep 13, 2021
9927d59
Improved table styling
Pckool Sep 13, 2021
f91837d
Fix for `Cannot read property 'onCoreReady' of undefined`
Pckool Sep 14, 2021
70b5ca3
Docs work
Pckool Sep 14, 2021
7f9ebb6
New exported members structure
Pckool Sep 14, 2021
525cfdd
Fix for core reference
Pckool Sep 14, 2021
f318d5b
Improved the custom details block contrast
Pckool Sep 14, 2021
9d82937
removed the controller doc in v4
Pckool Sep 14, 2021
cdef591
Updated the inline code element styles in docs
Pckool Sep 14, 2021
747c8e2
Futher refined core documentation
Pckool Sep 14, 2021
5484f42
reinstated the index change dur to integration issues
Pckool Sep 14, 2021
36c90f7
Merge pull request #192 from Pckool/develop
Pckool Sep 15, 2021
88d17aa
reinstate deps option
itsRems Oct 11, 2021
4311fac
v4.1.0
itsRems Oct 11, 2021
2a2f84e
provisional sucks
itsRems Oct 11, 2021
a62f1d1
v4.1.1
itsRems Oct 11, 2021
19c4348
Prepping for cathcup to dev branch
Pckool Nov 4, 2021
bd16fe7
Merge branch 'develop' of github.com:pulse-framework/pulse into develop
Pckool Nov 4, 2021
37e683e
updates to route function to fix a crash and have better dev experience
Pckool Nov 4, 2021
cbdd6a1
improved comments on route functions
Pckool Nov 4, 2021
d7c546a
Much better Route Docs
Pckool Nov 4, 2021
252fcab
updates to docs for route
Pckool Nov 4, 2021
baa3ccf
v4.1.3
itsRems Nov 4, 2021
da99f1b
Merge branch 'master' into develop
Pckool Nov 4, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ build/Release
node_modules/
jspm_packages/

# Typescript v1 declaration files
# TypeScript v1 declaration files
typings/

# Optional npm cache directory
Expand Down
4 changes: 2 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
y#!/usr/bin/env sh
#!/usr/bin/env sh

# abort on errors
set -e

# build
yern docs:build
yarn docs:build

# navigate into the build output directory
cd docs/.vuepress/dist
Expand Down
44 changes: 40 additions & 4 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
title: 'Pulse Framework',
description: 'Global state and logic framework for reactive JavaScript applications.',
title: 'Pulse',
description: 'A global state and logic framework for reactive JavaScript & TypeScript applications.',
dest: 'dist',
serviceWorker: true,
base: '/',
Expand All @@ -9,8 +9,8 @@ module.exports = {
logo: '/logo.svg',
nav: [
{ text: 'Home', link: '/' },
{ text: 'Documentation', link: '/v3/introduction/what-is-pulse' },
{ text: 'Changelog', link: '/v3/introduction/changelog' }
{ text: 'Documentation', link: '/v4/introduction/what-is-pulse' },
{ text: 'Changelog', link: '/v4/introduction/changelog' }
],
lastUpdated: 'Last Updated',
// Assumes GitHub. Can also be a full GitLab url.
Expand Down Expand Up @@ -149,6 +149,42 @@ module.exports = {
collapsable: false,
children: ['resources/snippets', 'getting-started/style-guide', 'resources/ideas']
}
],
'/v4/': [
{
title: 'Introduction',
collapsable: false,
children: ['introduction/what-is-pulse', 'introduction/changelog']
},
{
title: 'Getting Started',
collapsable: false,
children: [
'getting-started/concepts',
'getting-started/setup-with-react',
'getting-started/setup-with-vue',
'getting-started/setup-with-next'
]
},
{
title: 'Documentation',
collapsable: false,
children: [
'docs/state',
'docs/collections',
'docs/actions',
// 'docs/controllers',
'docs/core',
'docs/route',
'docs/persisting-data',
'docs/events'
]
},
{
title: 'Resources',
collapsable: false,
children: ['resources/snippets', 'getting-started/style-guide', 'resources/ideas']
}
]
}
},
Expand Down
44 changes: 28 additions & 16 deletions docs/.vuepress/styles/index.styl
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
$pulseRed = #EF425A;
$pulseRedLighter = #ff8c9e;
$pulseRedLighter = #FF6292;
$pulseCodeBackground = #282e3f;
$pulseGrey = #7e9ab3;
$pulseFaint = #526577;
$pulseGreen = #28EBB0;
$pulseGreen = #00FFB2;
$pulseYellow = #FFD696;
$pulseWhite = #F7F8F8;
$pulseLightBlue = #B6DCFF;

table code
line-height: 2em !important;
table
tr, td, th
border-color: $pulseGrey;
tr:nth-child(2n)
background-color: $pulseCodeBackground;

code
line-height: 2em !important;


pre.vue-container
border-left-width: .5rem;
Expand Down Expand Up @@ -37,6 +44,7 @@ pre.vue-container

.theme-default-content:not(.custom)
margin 0
max-width 820px

@font-face {
font-family: dank;
Expand All @@ -48,27 +56,26 @@ pre.vue-container
// body, .sidebar, .navbar, .navbar .links {
// background-color: #1d1d1d !important;
// }
// .search-box input {
// background: #1d1d1d !important;
// }
.search-box input
background-color: $codeBgColor !important;

.custom-block.details {
.custom-block.details
display: block;
position: relative;
border-radius: 3px;
margin: 0.5em 0;
padding: 0.6em 1.2em;
background-color: #eee;
}
// background-color: #eee;


.theme-default-content
pre
background-color $pulseCodeBackground !important;
background-color $codeBgColor !important
code
color #CDD8E1 !important;
font-family: dank;
font-size: 1em;

color #CDD8E1 !important
font-family dank
line-height 1.7rem !important
font-size 1rem !important
// font-weight: bold;

.theme-default-content a code
Expand Down Expand Up @@ -164,4 +171,9 @@ code.language-javascript,
&.important
color #a48774;
&.entity
cursor help;
cursor help;


.home .hero h1
font-size 6rem !important
font-weight 800
8 changes: 5 additions & 3 deletions docs/.vuepress/styles/palette.styl
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
$accentColor = #EF425A
$textColor = #2c3e50
$borderColor = #eaecef
$codeBgColor = #282c34
$textColor = #9db2c8
$codeBgColor = #131620
$blockBgColor = #131620
$borderColor = #1b1b1b
$BgColor = #0e1117
$badgeTipColor = #42b983
$badgeWarningColor = darken(#ffe564, 35%)
$badgeErrorColor = #DA5961
Expand Down
80 changes: 33 additions & 47 deletions docs/.vuepress/theme/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,33 @@
<header class="navbar">
<SidebarButton @toggle-sidebar="$emit('toggle-sidebar')" />

<RouterLink
:to="$localePath"
class="home-link"
>
<img
v-if="$site.themeConfig.logo"
class="logo"
:src="$withBase($site.themeConfig.logo)"
:alt="$siteTitle"
>
<span
v-if="$siteTitle"
ref="siteName"
class="site-name"
:class="{ 'can-hide': $site.themeConfig.logo }"
>{{ $siteTitle }}</span>
<RouterLink :to="$localePath" class="home-link">
<img v-if="$site.themeConfig.logo" class="logo" :src="$withBase($site.themeConfig.logo)" :alt="$siteTitle" />
<span v-if="$siteTitle" ref="siteName" class="site-name" :class="{ 'can-hide': $site.themeConfig.logo }">{{ $siteTitle }}</span>
</RouterLink>

<div
class="links"
:style="linksWrapMaxWidth ? {
'max-width': linksWrapMaxWidth + 'px'
} : {}"
:style="
linksWrapMaxWidth
? {
'max-width': linksWrapMaxWidth + 'px'
}
: {}
"
>
<AlgoliaSearchBox
v-if="isAlgoliaSearch"
:options="algolia"
/>
<AlgoliaSearchBox v-if="isAlgoliaSearch" :options="algolia" />
<SearchBox v-else-if="$site.themeConfig.search !== false && $page.frontmatter.search !== false" />
<NavLinks class="can-hide" />
</div>
</header>
</template>

<script>
import AlgoliaSearchBox from '@AlgoliaSearchBox'
import SearchBox from '@SearchBox'
import SidebarButton from '@theme/components/SidebarButton.vue'
import NavLinks from '@theme/components/NavLinks.vue'
import AlgoliaSearchBox from '@AlgoliaSearchBox';
import SearchBox from '@SearchBox';
import SidebarButton from '@theme/components/SidebarButton.vue';
import NavLinks from '@theme/components/NavLinks.vue';

export default {
name: 'Navbar',
Expand All @@ -52,43 +40,42 @@ export default {
AlgoliaSearchBox
},

data () {
data() {
return {
linksWrapMaxWidth: null
}
};
},

computed: {
algolia () {
return this.$themeLocaleConfig.algolia || this.$site.themeConfig.algolia || {}
algolia() {
return this.$themeLocaleConfig.algolia || this.$site.themeConfig.algolia || {};
},

isAlgoliaSearch () {
return this.algolia && this.algolia.apiKey && this.algolia.indexName
isAlgoliaSearch() {
return this.algolia && this.algolia.apiKey && this.algolia.indexName;
}
},

mounted () {
const MOBILE_DESKTOP_BREAKPOINT = 719 // refer to config.styl
const NAVBAR_VERTICAL_PADDING = parseInt(css(this.$el, 'paddingLeft')) + parseInt(css(this.$el, 'paddingRight'))
mounted() {
const MOBILE_DESKTOP_BREAKPOINT = 719; // refer to config.styl
const NAVBAR_VERTICAL_PADDING = parseInt(css(this.$el, 'paddingLeft')) + parseInt(css(this.$el, 'paddingRight'));
const handleLinksWrapWidth = () => {
if (document.documentElement.clientWidth < MOBILE_DESKTOP_BREAKPOINT) {
this.linksWrapMaxWidth = null
this.linksWrapMaxWidth = null;
} else {
this.linksWrapMaxWidth = this.$el.offsetWidth - NAVBAR_VERTICAL_PADDING
- (this.$refs.siteName && this.$refs.siteName.offsetWidth || 0)
this.linksWrapMaxWidth = this.$el.offsetWidth - NAVBAR_VERTICAL_PADDING - ((this.$refs.siteName && this.$refs.siteName.offsetWidth) || 0);
}
}
handleLinksWrapWidth()
window.addEventListener('resize', handleLinksWrapWidth, false)
};
handleLinksWrapWidth();
window.addEventListener('resize', handleLinksWrapWidth, false);
}
}
};

function css (el, property) {
function css(el, property) {
// NOTE: Known bug, will return 'auto' if style value is 'auto'
const win = el.ownerDocument.defaultView
const win = el.ownerDocument.defaultView;
// null means not to return pseudo styles
return win.getComputedStyle(el, null)[property]
return win.getComputedStyle(el, null)[property];
}
</script>

Expand All @@ -114,7 +101,6 @@ $navbar-horizontal-padding = 1.5rem
.links
padding-left 1.5rem
box-sizing border-box
background-color white
white-space nowrap
font-size 0.9rem
position absolute
Expand Down
3 changes: 2 additions & 1 deletion docs/.vuepress/theme/styles/code.styl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
padding 0.25rem 0.5rem
margin 0
font-size 0.85em
background-color rgba(27,31,35,0.05)
// background-color rgba(27,31,35,0.05)
background-color $codeBgColor
border-radius 3px
.token
&.deleted
Expand Down
15 changes: 8 additions & 7 deletions docs/.vuepress/theme/styles/custom-blocks.styl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$pulseCodeBackground = #282e3f;
.custom-block
.custom-block-title
font-weight 600
Expand All @@ -8,22 +9,22 @@
border-left-style solid
margin 1rem 0
&.tip
background-color #f3f5f7
background-color $blockBgColor
border-color #42b983
&.warning
background-color rgba(255,229,100,.3)
background-color #3b3510
border-color darken(#ffe564, 35%)
color darken(#ffe564, 70%)
color darken(#ffe564, 10%)
.custom-block-title
color darken(#ffe564, 50%)
a
color $textColor
&.danger
background-color #ffe6e6
background-color #4d1515
border-color darken(red, 20%)
color darken(red, 70%)
color lighten(#4d1515, 60%)
.custom-block-title
color darken(red, 40%)
color lighten(#4d1515, 80%)
a
color $textColor
&.details
Expand All @@ -32,7 +33,7 @@
border-radius 2px
margin 1.6em 0
padding 1.6em
background-color #eee
background-color $pulseCodeBackground
h4
margin-top 0
figure, p
Expand Down
Loading